Credit Card

The following is an example of a creditcard request:

POST /v1/orders/ HTTP/1.1
Authorization: Basic aHVudGVyMjo=
Content-Type: application/json
    
{
  "currency": "EUR",
  "amount": 995,
  "merchant_order_id": "EXAMPLE001",
  "description": "Example creditcard order",
  "return_url": "https://www.example.com/",
  "webhook_url": "https://www.example.com/webhook/",
  "transactions": [
    {
      "payment_method": "credit-card"
    }
  ]
}

Currently the following brands are supported:

  • VISA
  • MasterCard
  • Maestro
  • V Pay
  • Diners/Discover

Merchant descriptor

A good descripion can help preventing chargebacks. It must be enabled but if so you can provide a specific description e.g. “Order 101”. Please contact us to have the merchant descriptor enabled.

POST /v1/orders/ HTTP/1.1
Authorization: Basic aHVudGVyMjo=
Content-Type: application/json
    
{
  "currency": "EUR",
  "amount": 995,
  "description": "Example creditcard order",
  "transactions": [
    {
      "payment_method": "credit-card",
      "payment_method_details": {
        "dynamic_descriptor": "Order 101"
      }
    }
  ]
}

Testing

Credit card can be tested with a project configured for testing. The following cards can be used.

Test card Flow Brand
4147463011110083 Frictionless Visa
5239290700000028 Frictionless Mastercard
4012000000012011004 Frictionless Visa
4147463011110109 Challenge Visa
5239290700000002 Challenge Mastercard
4147463011110059 Challenge Visa Configurable response
5204740000002745 Challenge Mastercard Configurable response