Tuesday 15 July 2014

express checkout - How am I supposed to capture a payment 1 day after its authorization if the PayPal token expires after 3 hours? -


I am using Express Checkout API through the ActiveMerchant Mani in Ruby on the Railway App. The entire authorization and capture flow works only after recovery within 3 hours. But after that my token ends and I lose the transaction. Even if authorizing and capturing documents says that the authorization is valid for 3 days (at least accordingly).

So, how can I get a transaction after the token expires?

You should not have to go through your token. You must follow the following flow.

  1. Call your SetExpressCheckout API and set the payment function for authorization (A)
  2. Retrieve the token
  3. Redirect the buyer to the token
  4. The buyer is redirected back to your site with the token and the payer ID
  5. then you will be able to login with your token GetExpressCheckoutDetails can execute by using API calls tokens. (This step is optional)
  6. Then you do the DoExpressCheckoutPayment API where you pass through the token and set the payment function in the authorization (A)

    then express Completes Checkout Authentication.

    Now you will go back after a day or two and submit your Docapture API, where you send the transaction ID that was given before your douxpress checkout payment API. You do not send tokens again. Once you complete DoCapture, then the funds should be shown in your account.

No comments:

Post a Comment