1

I am creating a PHP form which takes the customer's information and the amount they want to spend and when the submit button is hit the details are sent to my email address.

This is where I have the problem. I want to then send them a link to the PayPal account to complete the purchase. However I want the amount to be pre-populated based on the amount they selected from the forum.

Simply, can this be done?

4

1 回答 1

0

您需要将表单的操作参数从https://www.paypal.com/cgi-bin/webscr更改为 www.someurl.com/page-that-you-can-edit.php

然后,您需要编写脚本以通过电子邮件向您发送您想要的任何信息,然后使用适当的 paypal 变量将买家静默重定向到 PayPal(您通过设置标题来执行此操作): cmd=_donations&business=yourpaypal@email.com&amount=xx.xx&item_name=your items name&[any other website payment standard variables ]

于 2012-04-18T11:58:22.743 回答