Disable shipping address option in PayPal Express Checkout

后端 未结 7 1712
温柔的废话
温柔的废话 2020-12-09 16:06

Working with the PayPal API and using the Name-Value Pair Interface PHP source codes from SDKs and Downloads: Simplify Integrations with Downloads and SDKs.

My quest

7条回答
  •  醉梦人生
    2020-12-09 16:22

    @Ergec : I tried this:

    $nvpstr = "&ADDRESSOVERRIDE=1".$shiptoAddress."&L_NAME0=".$L_NAME0."&L_NAME1=".$L_NAME1."&L_AMT0=".$L_AMT0."&L_AMT1=".$L_AMT1."&L_QTY0=".$L_QTY0."&L_QTY1=".$L_QTY1."&MAXAMT=".(string)$maxamt."&ITEMAMT=".(string)$itemamt."&AMT=".$itemamt."&ReturnUrl=".$returnURL."&CANCELURL=".$cancelURL."&CURRENCYCODE=".$currencyCodeType;
    

    It works. Here we can also use shipping address even though we are not charging any amount.

提交回复
热议问题