Paypal - BMCreateButton - 小计金额无效

时间:2013-07-25 08:04:27

标签: paypal

我开始收到错误:

Ack: Failure
Correlation ID: d1ed16a437fc9
Version: 85
Error Number: 13117
Short Message: Invalid Argument
Long Message: Subtotal amount is not valid.

在发出BMCreateButton请求时,脚本运行正常,任何人都可以看到下面的请求有什么问题吗?此外,我无法在任何地方找到规定小计金额格式的规范。

METHOD=BMCreateButton
&VERSION=85
&PWD=xxxxxxx
&USER=xxxxxxx
&SIGNATURE=xxxxxxx
&BUTTONCODE=TOKEN
&BUTTONTYPE=PAYMENT
&L_BUTTONVAR0=address1=11 The Oaks
&L_BUTTONVAR1=address2=
&L_BUTTONVAR2=address_override=true
&L_BUTTONVAR3=billing_address1=11 The Oaks
&L_BUTTONVAR4=billing_address2=
&L_BUTTONVAR5=billing_city=Fleet
&L_BUTTONVAR6=billing_country=UNITED KINGDOM
&L_BUTTONVAR7=billing_first_name=Victoria
&L_BUTTONVAR8=billing_last_name=Fry
&L_BUTTONVAR9=billing_state=Hampshire
&L_BUTTONVAR10=billing_zip=GU51 4HQ
&L_BUTTONVAR11=business=XDQD9TZGYQ9YY
&L_BUTTONVAR12=buyer_email=xxxxxxx
&L_BUTTONVAR13=cancel_return=xxxxxxx
&L_BUTTONVAR14=city=Fleet
&L_BUTTONVAR15=country=UNITED KINGDOM
&L_BUTTONVAR16=currency_code=GBP
&L_BUTTONVAR17=first_name=Victoria
&L_BUTTONVAR18=invoice=8132
&L_BUTTONVAR19=last_name=Fry
&L_BUTTONVAR20=lc=US
&L_BUTTONVAR21=notify_url=xxxxxxx
&L_BUTTONVAR22=paymentaction=sale
&L_BUTTONVAR23=return=xxxxxxx
&L_BUTTONVAR24=shipping=0
&L_BUTTONVAR25=state=Hampshire
&L_BUTTONVAR26=subtotal=65
&L_BUTTONVAR27=zip=GU51 4HQ

值为php url编码。

非常感谢任何建议。

1 个答案:

答案 0 :(得分:2)

我能够通过添加小计项目ala来解决此错误:

"L_BUTTONVAR3" :"subtotal=10.99"