
Adaptive Payments Developer Guide August 7, 2012 253
15
Adaptive Payment Commands
and Redirects
The web flows associated with Adaptive Payments may require you to redirect a sender’s
browser to PayPal. When you redirect to the webscr endpoint, you must send a command that
identifies the flow and associated parameters, or in the case of the embedded payment flow,
you must redirect to a specific endpoint for the flow.
Adaptive Payment Commands
When redirecting to https://www.paypal.com/webscr, you must specify a command
that identifies the flow.
_ap-payment Command
The sender can log in to paypal.com and approve a payment when you redirect the sender’s
browser to paypal.com with the _ap-payment command.
Redirect to PayPal using the _ap-payment command
https://www.paypal.com/webscr?cmd=_ap-payment&paykey=value
Response to _ap-payment command from PayPal
PayPal redirects to the return URL you set in the Pay request.
NOTE: Any additional parameters you specify in the URL are not returned.
Command Description
_ap-payment Invokes PayPal login to approve a payment using Adaptive Payments
_ap-preapproval Invokes PayPal login to set up a preapproval using Adaptive Payments
Parameter Description
cmd (Required) _ap-payment
paykey (Required) The payment key from the Pay response message; for example, AP-
12345678901234567.
Komentarze do niniejszej Instrukcji