v1

latestOpenAPI 3.0.02026-07-24440173.4 KB
Payments

Create Payment

post/v3/payments

Request body

PaymentMethod'CARD' | 'APPLE_PAY' | 'GOOGLE_PAY' | 'KNET'

Specify the payment method you want to use, or omit this parameter to create a payment page that displays all enabled methods. This is required for redirection cases.

PaymentExpirystring date-time

The payment expiration date. Must be in UTC timezone.

NotificationOption'EMAIL' | 'SMS' | 'ALL' | 'LINK'

Defines how the customer receives invoice notifications. Note: Email or mobile becomes mandatory based on the selected option.

OperationType'AUTHORIZE' | 'PAY'

Defines the type of payment operation.

Language'EN' | 'AR'

Invoice language.

IpAddressstring

The customer’s IP address

DisplayPaymentMethodsstring[]

Array of payment methods to be displayed on the invoice page. such as: ["card", "knet", "googlepay", "applepay"] If this parameter is not sent, and the PaymentMethod field is also not provided, all payment methods enabled on your account will be displayed automatically.

NetworkTransactionIdstring

Can be used when paying with network tokens.

Response

Payment created successfully

IsSuccessstring

"true" or "false" indicating the status of your request.

Messagestring

The message response associated with the request done

ValidationErrorsobject[]

A model that contains two keys "Name" and "Error". This is used to indicate the validation result for all parameters you have sent in your request. This can have one or more items based on the invalid parameter count.

All 44 operations