I am working on a PayPal integration solution whereby the client application+server need to make use of features in several APIs, Adaptive Accounts (specifically "AddPaymentCard"), Adaptive Payments (specifically "Chained Payments") and Merchant APIs.
Is it possible to use those APIs together?
For example, can I
- Add one or more credit cards as the funding source(s) using "AddPaymentCard" Adaptive Accounts API. (client application)
- Choose one of the credit cards as the "funding source" for "Pay" Adaptive Payments operation. (client application)
- Then, after the fact, use Merchant API to do operations on transactions created in step 2, eg. Void (DoVoid). (server)
Let me elaborate on 3 here. With payment created by Adaptive Payment's "Pay" operation, can I then void the transaction with the Merchant API? eg.
devtools-paypal.com/apiexplorer/AdaptivePayments, PAY operation
actionType PAY
currencyCode USD
…
receiverList
receiver
amount 1.00
email testuser@hotmail.com
Response
{
"responseEnvelope": {
"timestamp": "2014-08-24T09:36:47.259-07:00",
"ack": "Success",
"correlationId": "5ffaa01a860d1",
"build": "12382931"
},
"payKey": "AP-3N46701432081335J",
"paymentExecStatus": "CREATED"
}
Then, perform the transaction with
www.sandbox.paypal.com/cgi-bin/webscr?cmd=_ap-payment&paykey=AP-3N46701432081335J.
Then, can I perform a DoVoid operation (devtools-paypal.com/apiexplorer/PayPalAPIs) on the resulting transaction?
If 1+2 above is not possible, can I use REST API together with Adaptive Payments?
- Store credit card using developer.paypal.com/webapps/developer/docs/api/#store-a-credit-card
- Somehow create an order of "Adaptive Payments, Chained" with developer.paypal.com/webapps/developer/docs/api/#create-an-order
Thanks!