how to deferred payments handling(pre-approved)
I'm very new to drupal commerce so forgive the ignorant questions.
I need to extend the commerce_paypal module and add another payment method that supports the Paypal Adaptive Payments SDK(or amazon FPS). Specifically, i want delayed chained payments (pre-approved payments). Now the traditional payment methods run a PAY transaction right away as seen in the order.
However, pre-approved payments return a token that must be kept until payment is initiated. where should I keep this token? How should I relate it to the order?
Should I run a transaction on the order (trans 1) to store the token (in the payload) then later initiate a payment and store the payload in transaction 2?
Any insights will be very appreciated.
My 2 cents
You can start here: