Paypal - 创建一个自定义立即购买按钮
i want to create a custom but now (or another pay now paymnet... ) so i read the documetation at paypal.com (Paypal API). and i read about HTML variables. so far i understand that for create a buy now with dynamic price i need to set the amount variable to my price. seconds i have the item_name and item_id variables for information about the productd.
but my que's are, where do i set the acount that my client pay for? i mean where i set to where the money will transfer?
seconds, is there anyway to add an another data that will send back to my server after the payment complete?
我想创建一个自定义但现在(或另一个现在支付paymnet ...)所以我读了文档 paypal.com( Paypal API )。 我读到了关于HTML变量。 迄今为止我明白,为了现在以动态价格创建买入,我需要将金额变量设置为我的价格。 秒我有item_name和item_id变量来获取有关productd的信息。 p >
但我的问题是,我在哪里设置客户支付的金额? i意味着我设置到钱转移的位置? p>
秒,是否还要添加另一个数据,这些数据将在付款完成后发送回我的服务器? p> div>
If you created a hosted button (saved at PayPal) then it knows which account to send the money to based on that.
If you're working with an non-hosted button then you would use the "business" parameter to pass the email address or merchant account ID of the account you want the money to go to.
You can use the "custom" parameter to pass your own custom data. It's actually called "custom" and you can pass up to 256 characters into it. It will then come back in PDT or IPN if you're using those, and it would also show up in the GetTransactionDetails API response.