By Grzegorz Szyszka on Tuesday, 14 April 2020
Posted in General Issues
Replies 5
Likes 0
Views 623
Votes 0
Hello,

I am currently testing PAYPLANS integration REST options. After reading this: https://stackideas.com/docs/payplans/administrators/automation/rest-api-requests and
https://stackideas.com/docs/payplans/administrators/legacy-documentation/using-tokens
I have prepared REST API in other application that is now capable to receive data from PAYPLANS.

Due to my surprise, automation scripts are passing only ONE variable. In addition, it seems that the variable HAS to be placed at the end of the link.

I have prepared parameters and values for "Subscription Being Activated" event as follows:

p_external_id=[[PLAN_PLAN_ID]]&p_name=[[PLAN_TITLE]]&p_price=[[PLAN_DETAILS_PRICE]]&p_currency=[[PLAN_DETAILS_CURRENCY]]&p_expiration_type=[[PLAN_DETAILS_EXPIRATIONTYPE]]&p_nr_of_recurrencies=[[PLAN_DETAILS_RECURRENCE_COUNT]]&u_email=[[USER_EMAIL]]&u_name=[[USER_USERNAME]]&u_provider=api&u_password=TestoweHaslo&s_external_id=[[SUBSCRIPTION_SUBSCRIPTION_ID]]&s_status=[[SUBSCRIPTION_STATUS]]&s_total=[[SUBSCRIPTION_TOTAL]]&s_expires_at=[[SUBSCRIPTION_EXPIRATION_DATE]]

When triggered - only "p_external_id=2&p_name" is passed to the other system.

Unfortunately, this is not sufficient for our integration.

Please verify this functionality - it seems like an error. I assume that this limitation is not created intentionally?

Thank you in advance.
Hey,

Please provide us with your site backend as well as ftp details, so we will check this issue at your site.

Thank you for understanding !
·
Tuesday, 14 April 2020 11:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha

Please find requested information in posted issue.

Best regards
·
Wednesday, 15 April 2020 20:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Thank you for providing us with the access.
I've checked your site and found that your app configuration was not setup correctly. To use multiple variable need to add in new line rather then add after &. I've corrected it.

As well as i've found that you are using some of tokens which is not exit in PayPlans , so i've corrected them as well as.
See here : http://serwer2055562.home.pl/comeleontest/administrator/index.php?option=com_payplans&view=automation&layout=form&id=10

Now, your rest api is sending all the parameters. Please take a look on this issue again and do us update if still any issue persist.

Update us with response.
·
Thursday, 16 April 2020 14:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha,

Thank you for this. Putting values in new lines works ok.

Why are these values not available?

[[PLAN_DETAILS_EXPIRATIONTYPE]]: Displays type (fixed, recurring or forever) of expiration of the subscription

[[PLAN_DETAILS_EXPIRATION]]: Displays the time at which the subscription expires

[[PLAN_DETAILS_RECURRENCE_COUNT]]: Displays the count of the no. of recurrences allowed for the payment

[[PLAN_DETAILS_TRIAL_PRICE_1]]: Displays first trial price of the plan

[[PLAN_DETAILS_TRIAL_TIME_1]]: Displays time period of the first trial of the plan

[[PLAN_DETAILS_TRIAL_PRICE_2]]: Displays second trial price of the plan

[[PLAN_DETAILS_TRIAL_TIME_2]]: Displays time period of the second trial of the plan

[[PLAN_DETAILS_PRICE]]: Displays actual price of the plan

[[PLAN_DETAILS_CURRENCY]]: Displays currency of the cost of the plan

They should work according to the documentation
https://stackideas.com/docs/payplans/administrators/automation/rest-api-requests and
https://stackideas.com/docs/payplans/administrators/legacy-documentation/using-tokens

Best regards
·
Sunday, 19 April 2020 02:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

I am really sorry for the delayed response.

Why are these values not available?

In PayPlans 4.x version these tokens not working. I've added this into our issue tracker and we will look into this.
Once get fixed internally we will update you.

Thank you for understanding !
·
Monday, 20 April 2020 11:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post