Utilizing “Send Money to Friends and Family” functionality via our app

夙愿已清 提交于 2020-01-05 04:31:10

问题


Our app needs to utilize the functionality "send money to friends and family".

Now we can perform PERSONAL payments using AdaptivePayments without any fee (as expected) but this type of transaction seems to be purchasing transaction rather than "send money to family and friends" transaction. Looking at the payment details instead of seeing the information which is related to "send money to friends and family" type of transfers we see the following details: "Payment/Payment received" instead of "Money sent/received", "Seller info", "Your purchase", "Item amount", "Shipping", "Tax", "Purchase total". Below you will find request details:

curl -s --insecure \
-H "X-PAYPAL-SECURITY-USERID: $USERID" \
-H "X-PAYPAL-SECURITY-PASSWORD: $PASSWORD" \
-H "X-PAYPAL-SECURITY-SIGNATURE: $SIGNATURE" \
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV" \
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: JSON" \
-H "X-PAYPAL-APPLICATION-ID: $APPID" \
https://svcs.sandbox.paypal.com/AdaptivePayments/Pay -d "requestEnvelope.errorLanguage=en_US\
&actionType=PAY\
&sender.email=$SENDER\
&receiverList.receiver(0).email=$RECEIVER\
&receiverList.receiver(0).amount=$AMOUNT\
&receiverList.receiver(0).paymentType=PERSONAL\
&feesPayer=SENDER\
&currencyCode=USD\
&memo=Simple payment example.\
&cancelUrl=$CANCELURL\
&returnUrl=$RETURNURL"

Looking at the PayPal app settings the option "Send money" is deprecated and REST API should be used instead. But all these payments using REST API are performed between seller and buyer. What do we need to change in the request mentioned above so we can be able to utilize functionality "send money to friends and family" via our app?

Thanks in advance.

来源:https://stackoverflow.com/questions/41268506/utilizing-send-money-to-friends-and-family-functionality-via-our-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!