International Payments

It can be frustrating dealing with foreign payments. You can now handle all that through our API. We've created a guide to make sure your payments can be done right!

1. Create the merchnat & customer ojects and set the amount

As with every payment, you need to create or retrieve your two objects (merchant and customer) first. The only special requirement in this case is that the email of the customer is required. Apart from that there's nothing special about them for international payments.

3. Create the payment
  While the process is almost the same as for domestic payments, keep in mind that most processors have additional restrictions for international payments. For instance, you will be required to submit the email for the customer.
curl https://api.qorcommerce.io/v2/card/ \
    -H "Authorization: QorToken <PRIVATE_TOKEN>" \
    -d object_purpose="NEW" \
    -d merchant="d799c2679e644279b59fe661ac8fa488" \
    -d customer="42236bcf36214f62bcc6d7f12f02a849" \
    -d amount="1.00" 
    
# Create the payment object
payment = Qor::Payment.create(
    :object_purpose => 'NEW',
    # you can also use the object_id directly for the following, but this is more convenient
    :merchant => merchant,
    :customer => customer,
    :amount => amount
)
# Create payment object
payment = Qor.Payment.create(
    object_purpose = 'NEW',
    merchant = merchant,
    customer = customer,
    amount = amount
)
// Create payment object
$payment = Qor_Payment::create(
    array(
        "object_purpose" => "NEW",
        "merchant" => $merchant,
        "customer" => $customer,
        "amount" => $amount
    )
);
// Create payment object
var payment = qor.payment.create({
    "object_purpose": "NEW",
    "merchant": merchantID,
    "customer": customerID,
    "amount": amount
})