Create Intention
Outcome: Create an Intention that will be used to complete a payment, either via APIs or through one of our UI options.
Authorization
Add your “secret key“ in the authorization header preceded by the word "Token ".
Key values in the response
You'll receive a response, which is an object that represents an intention and includes all the intention details.
- Important parameters: Order ID: Paymob order ID, which will be received in the transaction callback and can be used to correlate the transaction to the order on your system.
- Intention ID: Paymob intention ID can be used to do the same as the Order ID.
- Client Secret: A unique, intention-specific token used to redirect the customer to Paymob’s Unified Checkout or to render Paymob’s Pixel component.
Header Parameters
This is the secret key which you can get from your Dashboard
Body Parameters
The total transaction amount, expressed in cents.
The currency in which the transaction is processed. This must match the currency of the selected Integration ID.
The Integration ID(s) used to process the payment. Values can be provided as integers (e.g., 1256) or as names enclosed in quotes (e.g., "card"). The status (Live/Test) of the provided ID(s) should match the status of the secret key used for authentication.
Show child attributes
Show child attributes
Show child attributes
A set of additional custom parameters provided by the merchant. These values are returned in callbacks under the payment key claims object.
Show child attributes
A unique reference associated with the transaction or order, returned in the transaction callback under merchant_order_id.
A callback URL that receives a POST request with full transaction details after the transaction succeeds or fails. Supported only with card Integration IDs. This endpoint
A URL to which the customer is redirected after the transaction completes, with transaction details included as query parameters. Supported only with card and wallet payment methods. > ⚠️ Important Notes
The endpoint used in the notification URL will receive the transaction callback (transaction details) and the card token (for pay with saved card features)
Response
Response Attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
What made this section unhelpful for you?
Base URL
Production:
Sandbox: