Paypal Setexpresscheckout ItemDescription Grails

grails paypal
Paypal Setexpresscheckout ItemDescription Grails

set express checkoputでアイテムの概要を設定できません。 L_NAME0 = Aがエラーを引き起こしました

        def strUsername = "***"
        def strPassword = "***"
        def strSignature = "***"
        def strCredentials = "USER=" + strUsername + "&PWD=" + strPassword + "&SIGNATURE=" + strSignature
        def strNVPSandboxServer = "https://api-3t.sandbox.paypal.com/nvp";

        def user = session.userId +","+amt + "," + receiver + "," + address + "," + opt
        def successUrl = '***

        def cancelUrl = '***'
        def strAPIVersion = "56.0"
 def strNVP = strCredentials + "&METHOD=SetExpressCheckout&AMT=" + totalamount +"&PAYMENTACTION=Sale&RETURNURL="+ successUrl+"&CANCELURL="+ cancelUrl +"&CURRENCYCODE=SGD&ITEMAMT="+totalamount+"&L_NAME0=OHN&VERSION=" + strAPIVersion

  0  0


ベストアンサー

def strAPIVersion = “56.0”をdef strAPIVersion = “76.0”に更新してみてください。56バージョンでは高度な機能は利用できないと思います。 私は、テスト&としてペイパルによるデフォルトセットを使用L_PAYMENTREQUEST_0_NAME0 = 10%カフェイン抜きコナブレンドコーヒー+&L_PAYMENTREQUEST_0_NUMBER0 = 623083 &L_PAYMENTREQUEST_0_DESC0 =サイズ:8.8オンス&L_PAYMENTREQUEST_0_AMT0 = 9.95 +&L_PAYMENTREQUEST_0_QTY0 = 2 +&L_PAYMENTREQUEST_0_NAME1 =コーヒーフィルターバッグ&L_PAYMENTREQUEST_0_NUMBER1 = 623084 &L_PAYMENTREQUEST_0_DESC1 =サイズ:2つの24ピースボックス&L_PAYMENTREQUEST_0_AMT1 = 39.70 +&L_PAYMENTREQUEST_0_QTY1 = 2 +&PAYMENTREQUEST_0_ITEMAMT = 99.30 +&PAYMENTREQUEST_0_TAXAMT = 2.58 +&PAYMENTREQUEST_0_SHIPPINGAMT = 3.00 +&PAYMENTREQUEST_0_HANDLINGAMT = 2.99 +&PAYMENTREQUEST_0_SHIPDISCAMT = -3.00 +&PAYMENTREQUEST_0_INSURANCEAMT = 1.00 +&PAYMENTREQUEST_0_AMT = 105.87 +&ALLOWNOTE = 1

0


タイトルとURLをコピーしました