我在轨道上的红宝石中使用这个宝石&paypal-sdk-adaptivepayments'我在付款后获得了成功但是当我在沙箱中看到我的帐户时,没有一个用户获得付款,并且商家帐户也没有被扣款。 这是我在成功后从paypal获得的回复
<PayPal::SDK::AdaptivePayments::DataTypes::PaymentDetailsResponse:0x00000007d3cfc8 @responseEnvelope=#<PayPal::SDK::AdaptivePayments::DataTypes::ResponseEnvelope:0x00000007d3cc80 @timestamp=Mon, 13 Jul 2015 00:04:03 -0700, @ack="Success", @correlationId="4a4043560f603", @build="17325060">, @cancelUrl="http://localhost:3000/payments/cancel", @currencyCode="USD", @ipnNotificationUrl="http://localhost:3000/payments/ipn_notify", @paymentInfoList=#<PayPal::SDK::AdaptivePayments::DataTypes::PaymentInfoList:0x00000007d33cc0 @paymentInfo=[#<PayPal::SDK::AdaptivePayments::DataTypes::PaymentInfo:0x00000007d33ba8 @receiver=#<PayPal::SDK::AdaptivePayments::DataTypes::Receiver:0x00000007d33ae0 @amount=160.0, @email="jaskaran@yopmail.com", @primary=false, @paymentType="SERVICE", @accountId="MNF7MDPJWJHJL">, @pendingRefund=false>, #<PayPal::SDK::AdaptivePayments::DataTypes::PaymentInfo:0x00000007d33388 @receiver=#<PayPal::SDK::AdaptivePayments::DataTypes::Receiver:0x00000007d33310 @amount=10.0, @email="user4paypal@yopmail.com", @primary=false, @paymentType="SERVICE", @accountId="HEPSP9YS5ZMPQ">, @pendingRefund=false>]>, @returnUrl="http://localhost:3000/payments/success", @status="CREATED", @payKey="AP-2G3459926X3244353", @actionType="PAY", @feesPayer="SENDER", @reverseAllParallelPaymentsOnError=false, @sender=#<PayPal::SDK::AdaptivePayments::DataTypes::SenderIdentifier:0x00000007d325f0 @useCredentials=false>>
这里是状态创建,我想更改它已完成,是否需要再调用任何api来执行此操作?
答案 0 :(得分:0)
哦搜了3个小时后。我得到了解决方案。 :)
我必须在付款人电子邮件中添加senderEmail
参数。而已。通过这种方式,paypal允许交易为COMPLETED
。