1

プロファイル ID を正常に作成しましたが、bill_outstanding_amount を使用しようとすると、「プロファイル ID が要求にありません」というエラーが表示されます。

res = stargate.bill_outstanding_amount(profile_id, :amount => 888, :currency => "EUR" )

私はこの宝石を使用しています: https://github.com/rayvinly/active_merchant.git

そして、私のxmlは次のようになります:

  <BillOutstandingAmountReq xmlns="urn:ebay:api:PayPalAPI">
   <BillOutstandingAmountRequest xmlns:n2="urn:ebay:apis:eBLBaseComponents">
    <n2:Version>62.0</n2:Version>
    <ProfileID>I-J58L6DFY53L1</ProfileID>
    <n2:Amount currencyID="EUR">8.88</n2:Amount>
   </BillOutstandingAmountRequest>
 </BillOutstandingAmountReq>

profile_id はテスト アカウントに対して有効であることに注意してください。get_profile_details(profile_id) を使用すると、有効なアクティブ ユーザー プロファイルが返されます。

これが機能しない理由はありますか?

4

0 に答える 0