PayPal APIs: Up and Running by Matthew A. Russell

PayPal APIs: Up and Running by Matthew A. Russell

Author:Matthew A. Russell [Matthew A. Russell]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Web / Web Programming
ISBN: 9781449321680
Publisher: O'Reilly Media
Published: 2012-04-03T16:00:00+00:00


Figure 4-4. Explicit Payment flow

Your application sends a Pay request to PayPal.

PayPal responds with a payment key that you use to redirect the sender to PayPal.

You redirect the sender to PayPal.com.

The sender approves the transfer of the payment, and PayPal redirects the sender to a return URL.

PayPal sends both the receiver and the sender an email summarizing the payment that was made.

Warning

Although not explicitly listed as a step in Figure 4-4, applications should be careful to verify the status of a payment immediately after the redirect of Step 4 before taking any actions such as crediting a user account. Usually, this is accomplished by using the same key that was returned in Step 2. For example, if PayPal redirects back to http://example.com/successful_payment?user=Bob&item=123 and your application blindly ships Bob Item #123 without first confirming the payment status referenced by the Pay key from Step 2, you’d be wide open to easy hacking exploits.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.