简体   繁体   English

贝宝多次付款

[英]Paypal multiple payments

I'm trying to write a PHP class for paypal express mutliple payments. 我正在尝试为Paypal Express多重付款编写一个PHP类。 All is well so far except one thing I haven't figured out. 到目前为止一切都很好,除了我还没有想到的一件事。 In PayPal's docs it says that PAYMENTREQUEST_n_PAYMENTREQUESTID is a required field for multiple payments, however I have no idea where to obtain a value for it. 在PayPal的文档中,它说PAYMENTREQUEST_n_PAYMENTREQUESTID是多次付款的必填字段,但是我不知道从哪里获得价值。 Is it a user set value? 它是用户设置的值吗? I tried putting random values and PP returns a SUCCESS however I'm not sure if that's good or bad. 我尝试放入随机值,PP返回成功,但是我不确定这是好是坏。

PAYMENTREQUESTID is a user set value. PAYMENTREQUESTID是用户设置的值。 The purpose of this field is to allow you co-relate response data for each of your parallel payments with your request data - Therefore it is good enough that this field is unique amongst multiple payment data for a given API call but random numbers should work too. 此字段的目的是允许您将每次并行付款的响应数据与请求数据相关联-因此,对于给定的API调用,此字段在多个付款数据中是唯一的,这很好,但随机数也应该起作用。 See the docs for more. 有关更多信息,请参阅文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM