_php tutorial on how to implement PayPal integration method in PHP website

Source: Internet
Author: User
Tags php website
So today I'll talk about how to integrate your website with PayPal.

First of all, go to PayPal to apply for a number bar, the information is complete, we can start the action music, yes, when applying for PayPal, apply for the kind of account that can accept other people's payment.

Next, we will really start the integration of PayPal and the website.

In fact, PayPal has to provide a fool-style Payment button creation method, but generally we do not, because we have to according to the actual situation of our website to write customized payment button. First, a piece of code:
Copy CodeThe code is as follows:


The above submission Form I wrote almost the most commonly used options, of course, there are special needs can go to the PayPal website to check the manual.

The previous form mentioned IPN (Instant Payment Notification), this is the key, that is, when the user paid a successful, PayPal sent us a notice, which contains the transaction information variables, We have designated PayPal to send these variable information to our site's pre-set page, through which we write the variable information we need to the database, and the page can obtain the desired information through $_post. How to set IPN, login paypal account, click Profile option, set IPN on it.

Well, it sounds simple enough to integrate PayPal so that your site can accept payments from users around the world!

http://www.bkjia.com/PHPjc/322627.html www.bkjia.com true http://www.bkjia.com/PHPjc/322627.html techarticle so today I'll talk about how to integrate your website with PayPal. First of all, go to PayPal to apply for a number bar, the information is complete, we can start action music, right, ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.