dongzha0149 2015-11-03 12:42
浏览 73
已采纳

如何在PayPal中将产品作为一个描述发送?

Hello I am using PayPal Express checkout. I was sending my cart to the request to API as

$item['product']['0']['name'];
$item['product']['0']['qty'];
$item['product']['0']['desc'];
$item['product']['0']['price'];

and I want to only send the description as 1 Quantity of item1, 2 Quantity of item2 is there any possibility in PayPal?

  • 写回答

1条回答 默认 最新

  • drr25281 2015-11-03 13:49
    关注

    To implement PayPal Express Checkout you need to do some server side code PHP. You have to do 3 API calls to validate a full payment.

    SetExpressCheckout GetExpressCheckoutDetails DoExpressCheckoutPayment or CreateRecurringPaymentsProfile

    In each call you will use your API credentials.

    To add several products loop this parameters ( use in methods SetExpressCheckout, DoExpressCheckoutPayment or CreateRecurringPaymentsProfile ):

            L_BILLINGAGREEMENTDESCRIPTION1
            L_PAYMENTREQUEST_0_NAME1
            L_BILLINGTYPE1
            L_PAYMENTREQUEST_0_DESC1
            L_PAYMENTREQUEST_0_QTY1
            L_PAYMENTREQUEST_0_AMT1
    

    For each products must change the number at the end of the parameter

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?