PayPal Adaptive Payments - description field

ぐ巨炮叔叔 提交于 2020-01-19 06:01:28

问题


I'm using paypal adaptive payments for my website. I have different sellers and different products but the problem is that when a user buy something from my website in the payment summary there is the name and surname of the seller instead of the product name!

I'm looking for a parameter to pass to display the product name instead of my name and the seller's name. I use PHP to redirect to the paypal's page.

Thank you!!


回答1:


Here is an official reply from PayPal I got today:

You can display line item details for the Embedded flow only. The Embedded flow uses either a lightbox or a minibrowser for the checkout pages. The item details you set with SetPaymentOptions are only displayed to the customer via this Embedded flow.




回答2:


With Adaptive Payments you will need to use SetPaymentOptions API Operation in order to modify those fields (line item, business name, etc), you can find all the variables here.

You can find an example here: https://github.com/paypal/adaptivepayments-sdk-php/blob/master/samples/SetPaymentOptions.php

Line item works with embedded flow only.



来源:https://stackoverflow.com/questions/19267605/paypal-adaptive-payments-description-field

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