Skip to main content

createOrder Method

Overview

The createOrder method initializes a payment order at the processor.

Request Fields

FieldTypeRequiredDescription
merchantOrderIdstringYesYour order reference
amountMoneyYesExpected amount
webhookUrlstringNoNotification URL

Response Fields

FieldTypeDescription
connectorOrderIdstringConnector's order ID
statusPaymentStatusSTARTED
sessionTokenarrayWallet session data

Example

$request = [
'merchantOrderId' => 'order_001',
'amount' => ['minorAmount' => 1000, 'currency' => 'USD'],
'webhookUrl' => 'https://your-app.com/webhooks'
];
$response = $paymentClient->createOrder($request);