0
我已經成功實現了在使用paypal-sdk-adaptivepayments
寶石的Rails中創建簡單付款。的JSON是從文檔如下:什麼是PayPal自適應付款JSON連鎖支付
{
:actionType => "PAY",
:cancelUrl => "http://localhost:3000/samples/adaptive_payments/pay",
:currencyCode => "USD",
:feesPayer => "EACHRECEIVER",
:ipnNotificationUrl => "http://localhost:3000/samples/adaptive_payments/ipn_notify",
:receiverList => {
:receiver => [{
:amount => self.amount,
:email => self.help_request.creator.master_profile.paypal_email }] },
:returnUrl => "http://localhost:3000/samples/adaptive_payments/pay"
}
我需要的,但是,設置一個類似JSON字符串,但使用多個接收器(一個主)爲鏈式支付。貝寶文檔展示瞭如何做到這一點,但它不是在JSON這正是我需要的SDK:
&actionType=PAY
&cancelUrl=http:\\example.com\cancel.htm
¤cyCode=USD
&receiverList.receiver(0).amount=9.00
&receiverList.receiver(0)[email protected]
&receiverList.receiver(1).amount=5.00
&receiverList.receiver(1)[email protected]
&requestEnvelope.errorLanguage=en_US
&returnUrl=http:\\example.com\return.htm
有人知道如何設置呢?這不是很明顯