ここに問題があります - フレームワークとして Codeigniter を使用し、Paypal Express Checkout を統合しています。私が使用しているライブラリはCI_MERCHANTであり、非常にうまく機能しますが、送信するパラメーターをprint_rしてからGetTransactionDetailsに要求すると、それらは異なります
ここに私が送っているものがあります:
Array
(
[METHOD] => SetExpressCheckout
[VERSION] => 94.0
[USER] => ***
[PWD] => ***
[SIGNATURE] => ***
[PAYMENTREQUEST_0_PAYMENTACTION] => Authorization
[PAYMENTREQUEST_0_CURRENCYCODE] => USD
[PAYMENTREQUEST_0_AMT] => 37.95
[PAYMENTREQUEST_0_ITEMAMT] => 35.95
[PAYMENTREQUEST_0_DESC] => invoice-#test
[PAYMENTREQUEST_0_TAXAMT] => 1.00
[PAYMENTREQUEST_0_SHIPPINGAMT] => 1.00
[L_PAYMENTREQUEST_0_NAME0] => Item_1
[L_PAYMENTREQUEST_0_DESC0] =>
[L_PAYMENTREQUEST_0_AMT0] => 35.95
[L_PAYMENTREQUEST_0_QTY0] => 1
[AMT] => 37.95
[SOLUTIONTYPE] => Sole
[LANDINGPAGE] => Billing
[ALLOWNOTE] => 1
[RETURNURL] => URL/ACCEPT
[CANCELURL] => URL/DECLINE
[PAYMENTREQUEST_0_SHIPTONAME] => first_name second_name
[PAYMENTREQUEST_0_SHIPTOSTREET] => address1
[PAYMENTREQUEST_0_SHIPTOSTREET2] => address2
[PAYMENTREQUEST_0_SHIPTOCITY] => city
[PAYMENTREQUEST_0_SHIPTOSTATE] => state
[PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => US
[PAYMENTREQUEST_0_SHIPTOZIP] => zip
[PAYMENTREQUEST_0_SHIPTOPHONENUM] =>
[PAYMENTREQUEST_0_EMAIL] => email@dot.com
[PAYMENTREQUEST_0_INVNUM] => 1468808
[upload] => 1
)
私が得る応答は次のとおりです。
Array
(
[RECEIVEREMAIL] => ***
[RECEIVERID] => ***
[EMAIL] => email@dot.com
[PAYERID] => ***
[PAYERSTATUS] => verified
[COUNTRYCODE] => US
[SHIPTONAME] => first_name last_name
[SHIPTOSTREET] => address1
[SHIPTOCITY] => city
[SHIPTOSTATE] => state
[SHIPTOCOUNTRYCODE] => US
[SHIPTOCOUNTRYNAME] => United States
[SHIPTOZIP] => ZIP
[ADDRESSOWNER] => PayPal
[ADDRESSSTATUS] => Confirmed
[INVNUM] => 1468808
[SALESTAX] => 0.00
[SUBJECT] => invoice-#test
[TIMESTAMP] => 2013-07-03T01:29:04Z
[CORRELATIONID] => b64ae0d8c4388
[ACK] => Success
[VERSION] => 94.0
[BUILD] => 6561328
[FIRSTNAME] => first_name
[LASTNAME] => last_name
[TRANSACTIONID] => ***
[TRANSACTIONTYPE] => cart
[PAYMENTTYPE] => instant
[ORDERTIME] => 2013-07-03T01:29:02Z
[AMT] => 35.95
[TAXAMT] => 0.00
[SHIPPINGAMT] => 0.00
[HANDLINGAMT] => 0.00
[CURRENCYCODE] => USD
[PAYMENTSTATUS] => Pending
[PENDINGREASON] => paymentreview
[REASONCODE] => None
[PROTECTIONELIGIBILITY] => Ineligible
[PROTECTIONELIGIBILITYTYPE] => None
[L_NAME0] => Item_1
[L_QTY0] => 1
[L_TAXAMT0] => 0.00
[L_SHIPPINGAMT0] => 0.00
[L_HANDLINGAMT0] => 0.00
[L_CURRENCYCODE0] => USD
[L_TAXABLE0] => false
[L_AMT0] => 35.95
}
私は次のことを試しました:異なるバージョン宣言を使用しています。バージョン 63.0 から SHIPPINGAMT と TAXAMT が非推奨になったことを知っているので、それを使用してバージョン 61 に設定しましたが、役に立ちませんでした。
また、サンドボックス アカウント内では、「クライアント」には送料の全額ではなく、ITEMAMT のみが請求されます。ただし、表示されている合計がITEMAMT + SHIPPING + TAXであるため、チェックアウト中に金額が渡されます.
誰が何が起こっているのか考えましたか?
感謝。