Can I send a variable to paypal, and have it post it back to me when payment completes?

前端 未结 7 1369

Ive been using express checkout API to convert people\'s accounts on my site to premium accounts after paying. The only problem with it is that it doesn\'t send the user bac

相关标签:
7条回答
  • 2020-12-04 18:37

    I finally get this answer, I want to share with all of you look:

    on your HTML form put this code (this is Paypal sandbox):

    form action="https://www.sandbox.paypal.com/cgi-bin/webscr?custom=YOUR_VAR" method="post"
    

    On your PHP after the Paypal redirect to your page success: use the cm GET variable:

    $example = $_GET["cm"];
    
    0 讨论(0)
提交回复
热议问题