Recently, I prepared to apply the PayPal online payment interface to implement online payment for the website and deliver the goods in real time. Now, from scratch, I plan to record how I implement this process and share it with my classmates.
The story begins with a requirement:
Requirements:
Xi Hu recently wrote a software program named hooyessoft. The specific software is not a concern. The purpose is to sell the software to foreign students through Inernet, (Hey, I heard that USD is worth a lot ).
Therefore, I set up a website and prepared to sell my own software. After some efforts, the website has been built.
Currently, online payment still needs to be improved. The initial requirement is roughly as follows:
Software purchaser --> purchase software --> online payment --> after successful payment --> receive an email containing the software serial number
Hey, foreign students are very trustworthy. If you buy genuine software, you need to buy a serial number.
Online payment plans use third-party payment platforms, considering PayPal (https://www.paypal.com/), tenpay (https://www.tenpay.com/), Alipay (https://www.alipay.com /)
Finally, select PayPal.
Because online payment involves bank funds, it is not convenient to fl the card every time you test it, so we need to test the sandbox.
PayPal has built a developer platform for sandbox testing to simulate real transactions. The address is as follows:
Https://developer.paypal.com
Register an account to start subsequent simulated PayPal transactions.
Log on to the PayPal sandbox and select test accounts --> Preconfigured Create two simulated account types: buyer and seller, that is, simulate the buyer and seller's PayPal account. You can fill in some dollars. Of course, the dollar here cannot be extracted for use.
Oh, it's time. Let's talk about it today. Class is over ...,
What about my lunch box?
Next section:
PayPal online payment interface application starts from scratch, section 2nd, [principles and procedures of Paypal payment API]