v1
latestOpenAPI 3.0.32026-07-2476126451.9 KBCreate payment Intent
Create a payment intent
Request body
The amount to charge. The field must have no more than 14 total digits and no more than 2 decimal places.
The currency of the amount represented by a string of alphabetic code from ISO 4217 Currency codes
The type of the current intent which can be one of 'purchase', 'authorize' or 'capture'. Note that operation is required if flow_id is not provided.
- purchase - purchase
- authorize - authorize
- PURCHASE - PURCHASE
- AUTHORIZE - AUTHORIZE
A URL that the Moneyhash server will send a POST request to with payment data after payment.
MoneyHash flow ID to be used during payment. If provided, operation shouldn't be provided.
The ID of a specific payment provider method you want to directly return for the user. If not provided, the user will be presented with a list of payment providers to choose from.
The ID of a card token you wish to process this payment with
The ID of a specific customer you wish to associate this payment with.
If set to true, the payment amount overview side panel will be hidden from the embed
if set to True, hides MoneyHash branding header from the returned embed
Only show the payment form to the user without other payment choices.
A URL that allows your customers to go back to your website at anytime during the payment.
If you want to top up a customer wallet using a payment, set this to true. If set to true, customer is required to create payment intent.
Use customer wallet to process the payment. If set to True, customer is required.
- incremental - incremental
- final - final
- INCREMENTAL - INCREMENTAL
- FINAL - FINAL
Will show a save card checkbox if it's applicable and the user can proceed without ticking the box
Allowing non-embedded experience to control whether to save the card for future use
Will show a save card checkbox if it's applicable and the user can NOT proceed without ticking the box
The number of seconds after which the intent will expire
Shows a countdown timer till intent expires, only valid in combination with expires_after_seconds
A list of payment methods to hide from the user
Use details in customer_details to create a new customer
A URL to redirect to after a successful payment transaction
A URL to redirect to after a payment transaction pending external action
A URL to redirect to after a failed payment transaction
A URL to redirect to after a payment intent is processed
A URL to redirect to after a payment intent is closed
A URL to redirect to after a payment intent is expired
To use intent without any hosted pages. Note that your business has to be PCI compliant
User's IP address to be used inside Flows and Risk rules, used only when use_direct_api is true
This must be specified for card payments where the cardholder is not present (i.e., recurring or mail order / telephone order)
- regular - regular
- recurring - recurring
- moto - moto
- installment - installment
- unscheduled - unscheduled
- REGULAR - REGULAR
- RECURRING - RECURRING
- MOTO - MOTO
- INSTALLMENT - INSTALLMENT
- UNSCHEDULED - UNSCHEDULED
MoneyHash transaction Id as UUID. Used to link the transaction to an existing series of transactions.
If set to true, the payment is being made with a network token
Flags the payment as a merchant-initiated transaction (MIT). It must be set to true for all MITs.
- sa - sa
- default - default
This field used to filter data to be used in sandbox
- redirect_inside_embed - redirect_inside_embed
- redirect_entire_window - redirect_entire_window
- redirect_to_new_tab - redirect_to_new_tab
- NOT_SENT - NOT_SENT
- SENDING - SENDING
- SENT - SENT
- CASH_OUTLET - CASH_OUTLET
- MOBILE_WALLET - MOBILE_WALLET
- CARD - CARD
- USSD - USSD
- KNET - KNET
- CASH_COLLECTION - CASH_COLLECTION
- AMAN_MASARY - AMAN_MASARY
- PAYPAL - PAYPAL
- PAY_AT_FAWRY - PAY_AT_FAWRY
- VALU - VALU
- SHAHRY - SHAHRY
- CASH_ON_DELIVERY - CASH_ON_DELIVERY
- BANK_INSTALLMENTS - BANK_INSTALLMENTS
- BANK_TRANSFERS - BANK_TRANSFERS
- REFERENCE_NUMBER - REFERENCE_NUMBER
- SELFSERVE_WALLET - SELFSERVE_WALLET
- APPLE_PAY - APPLE_PAY
- CLICK2PAY - CLICK2PAY
- GOOGLE_PAY - GOOGLE_PAY
- CAREEM_PAY - CAREEM_PAY
- PAY_FLEX - PAY_FLEX
- M_PESA - M_PESA
- MOBILE_MONEY - MOBILE_MONEY
- CRYPTO_WALLET - CRYPTO_WALLET
- NAPS - NAPS
- FORSA - FORSA
- SYMPL - SYMPL
- TABBY - TABBY
- SOUHOOLA - SOUHOOLA
- GETGO - GETGO
- SAMSUNG_PAY - SAMSUNG_PAY
- QPAY - QPAY
- TAMARA - TAMARA
- BENEFIT - BENEFIT
- RAZER - RAZER
- ININAL - ININAL
- STC - STC
- MOKAFAA - MOKAFAA
- SADAD - SADAD
- EFAWATEERCOM - EFAWATEERCOM
- OMANNET - OMANNET
- MADA - MADA
- TAPTOPAY - TAPTOPAY
- GRABPAY - GRABPAY
- GRABPAYPAYLATER - GRABPAYPAYLATER
- SHOPEEPAY - SHOPEEPAY
- SHOPEEPAYPAYLATER - SHOPEEPAYPAYLATER
- ATOME - ATOME
- TOUCHNGO - TOUCHNGO
- BOOST - BOOST
- PAYNOW - PAYNOW
- UPI - UPI
- ZAINCASH - ZAINCASH
- WALAONE - WALAONE
- QITAF - QITAF
- EFT - EFT
- CAPITEC_PAY - CAPITEC_PAY
Number of transactions that have been attempted for this intent.
A unique customer identifier, identifier is V4 UUID
The subscription that is using this intent to tokenize the customer card.
Response
Payment intent id unique identifier
The amount to charge. The field must have no more than 14 total digits and no more than 2 decimal places.
The currency of the amount represented by a string of alphabetic code from ISO 4217 Currency codes
Intent type
Account ID associated with the intent
Associated intent's custom fields if exists
Customer's billing data added during payment
Key value pairs of any additional information needed from the payment provider
An array of all transactions history associated with the intent
Associated flow id if provided while creating the intent
- True - Yes
- False - No
Intent creation date
Intent SDK state
Intent SDK state details