我正在使用Python的PayPal Api付款。貝寶貨幣MXN問題
我有美元和一切它的確定領域的貨幣一個簡單的請求......
,但如果我更改MXN(我需要此貨幣)支付寶WS返回此錯誤:
{u'message': u'Invalid request - see details', u'debug_id': u'2c9a227257a86', u'information_link': u'https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR', u'name': u'VALIDATION_ERROR', u'details': [{u'field': u'transactions[0].amount.currency', u'issue': u'Value is not supported at this time'}]}
我也嘗試使用歐元(EUR)和日元(JPY)。它使用這個值完美工作......問題在於我使用MXN時。
這是我在Python請求:
ayment = paypalrestsdk.Payment({
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [{
"credit_card": {
"type": "visa",
"number": "xxxxxxxxxxxxxxxx",
"expire_month": "11",
"expire_year": "2018",
"cvv2": "xxx",
"first_name": "Brad",
"last_name": "John"}}]},
"transactions": [{
"item_list": {
"items": [{
"name": "item",
"sku": "item",
"price": "1",
"currency": "MXN",
"quantity": 1 }]},
"amount": {
"total": "1",
"currency": "MXN"},
"description": "This is the payment transaction description."}]})
有什麼建議?
PD:本文檔中提到的各類貨幣之間的MXN支持需要爲MXN貨幣啓用