Showing results for 
Search instead for 
Did you mean: 

Charge credit card + create subscription on the same run of the script

Hello all! :)

Well, I'm using Accept.js hosted form on a PHP application.

I want to achieve the following order of actions:

1. Charge a credit card.

2. If the item is a recurring subscription, then-> create a subscription for the credit card.


The problem where I have stuck is that the dataDescriptor and dataValue seems to be valid only for one - time use, so, after the charge of the credit card they are not valid to generate the subscription (via the ARBCreateSubscriptionRequest xml request).


I need to achieve both actions in one time run of the script: charge credit card ++ create subscription.


How is this possible? Any help?