Credit Card
How to use CreditCard to submit a payin in Turkmenistan.
Payin by CreditCard
POST https://gateway-test.pagsmile.com/trade/pay
This endpoint allows you to submit a payin by CreditCard in Turkmenistan.
Processing time
Instant
Refunds
Supported
Amount limit
The permitted amount is subject to the cardholder's available card limit and the card issuer's rules.
Headers
Content-Type
string
Yes
Fixed value: application/json; charset=UTF-8.
Authorization
string
Yes
Basic authentication using Base64(app_id:security_key).
Request Body
app_id
string
Yes
Use the App ID assigned by Pagsmile.
Merchant application ID.
region
string
Conditional
Fixed value: TKM. Required when using a Global app.
ISO 3166-1 alpha-3 country code for Turkmenistan.
out_trade_no
string
Yes
Maximum length: 64 characters. Must be unique for the merchant application.
Merchant order number.
method
string
Yes
Fixed value: CreditCard.
Payment method.
order_amount
decimal
Yes
Supports up to 2 decimal places. The permitted amount is subject to the cardholder's available card limit and the card issuer's rules.
Payment amount in TMT.
order_currency
string
Yes
Fixed value: TMT.
Payment currency.
subject
string
Yes
Maximum length: 128 characters.
Payment subject or order title.
content
string
No
Maximum length: 255 characters.
Payment description.
notify_url
string
Yes
Must be a valid URL. HTTPS is recommended.
Merchant endpoint that receives asynchronous payment notifications.
buyer_id
string
Yes
Maximum length: 128 characters.
Merchant-side customer ID.
timestamp
string
Yes
Format: yyyy-MM-dd HH:mm:ss.
Time at which the request is sent.
token
string
Yes
Must be an unused psct_ token generated within the previous hour.
One-time card token generated through the Tokenization API.
timeout_express
string
No
Supported formats: <number>m (minutes), <number>h (hours), <number>d (days), or 1c (end of the current day). A number without a unit is treated as minutes. Default: 90m. Minimum: 1m. Maximum: 15d.
Time allowed for the payment to move from the initial state to processing.
customer.email
string
No
Maximum length: 64 characters. Must be a valid email address when provided.
Cardholder's email address.
The card token expires one hour after it is generated and becomes invalid immediately after it is used. Generate a new token immediately before each payment request.
Responses
Example Request
Complete 3DS Authentication
When check_url is returned:
Redirect the customer's browser to the complete
check_urlreturned by Pagsmile.Do not construct or modify the URL or its query parameters.
Allow the customer to complete the 3DS authentication flow.
Use the payment notification or the Payin Detail API to determine the final payment status.
A response with code=10000 confirms that the payment request was accepted. trade_status=PROCESSING is not a final successful payment status. Wait for the asynchronous payment notification or query the Payin Detail API before delivering goods or services.
Last updated
Was this helpful?