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!
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.
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
})