Hi! I'm working on a custom payment system and im having some trouble with completing credit card payments. Im using SEK (Swedish krona) as currency, and that should be working right? However when i create a request i get a "CURRENCY_NOT_ALLOWED" error. I tried checking the docs about it but all i cand find is the moderately helpful Currency is not supported. You are using a currency that is not currently supported. So is my request wrong, or is it some account setting i have missed? Im using a Dummy credit card generator, could that change the currency or something? Metadata: {
"url": "/v1/payments/payment",
"create_time": "2017-06-09T07:33:58Z",
"additional_properties": {},
"account_number": "xxxxxxxxxxxxxxxxxxx",
"client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"id": "xxxxxxxxxxxxxxxxxxxxxxxx"
} Request: Request:
{
"body": {
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"first_name": "fffffffffff",
"billing_address": {
"city": "cccccccccccccccc",
"postal_code": "12344",
"line1": "******",
"country_code": "SE"
},
"expire_month": 12,
"number": "xxxxxxxxxxxx6677",
"last_name": "llllllllllllllllllll",
"expire_year": 2022,
"type": "visa"
}
}
]
},
"transactions": [
{
"amount": {
"currency": "SEK",
"total": "200",
"details": {
"handling_fee": "5",
"subtotal": "195"
}
},
"description": "Heyyyyy!"
}
]
},
"header": {
"x-pp-ads-performed": "true",
"content-length": "843",
"pp_remote_addr": "89.255.240.52",
"x-pp-silover": "name=SANDBOX3.API.1&silo_version=1880&app=platformapiserv&TIME=1716468313&HTTP_X_PP_AZ_LOCATOR=",
"paypal-request-id": "31413ca0-0301-42a1-add7-8d615a197c0c",
"host": "api.sandbox.paypal.com",
"accept": "application/json",
"client-auth": "No cert",
"connection": "keep-alive",
"authorization": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddYA",
"x-pp-idempotencyid": "e6ecee76c3376_1496993638",
"x-slr-orig-script_uri": "https://api.sandbox.paypal.com/v1/payments/payment",
"x-pp-corrid": "e6ecee76c3376",
"user-agent": "PayPalSDK/ (v=1.8.0_131; vendor=Oracle Corporation; bit=64; os=Linux 4.11.3-200.fc25.x86_64)",
"content-type": "application/json",
"x-pp-slingshot-targetapp": "platformapiserv"
},
"additional_properties": {},
"method": "POST"
} Response: {
"status": 400,
"duration_time": 715,
"body": {
"message": "Currency is not supported.",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#CURRENCY_NOT_ALLOWED",
"name": "CURRENCY_NOT_ALLOWED",
"debug_id": "e6ecee76c3376"
},
"additional_properties": {},
"header": {
"Date": "Fri, 09 Jun 2017 07:33:59 GMT",
"paypal-debug-id": "e6ecee76c3376",
"APPLICATION_ID": "APP-xxxxxxxxxxxxxxxxx",
"Content-Language": "*",
"CALLER_ACCT_NUM": "JX4VEYQKDYVZW"
}
}
... View more