Credit Card
How to use Credit Card to submit a payin in Colombia.
Payin by CreditCard
Colombia CreditCard supports Direct Integration. The payment flow includes two steps:
Tokenize the card information through the Card Tokenize API.
Use the returned card token to submit a payin through the Submit a Payin API.
Colombia CreditCard supports refund.
Step 1: Tokenize Card
POST https://security-test.pagsmile.com/card/tokenize
Use this API to tokenize the card information. The returned token will be used in Step 2.
Request Body
app_id
string
Required
Max length: 32
The merchant application ID assigned by Pagsmile.
format
string
Required
Fixed value: JSON
Request format.
version
string
Required
Fixed value: 2.0
API version.
timestamp
string
Required
Format: yyyy-MM-dd HH:mm:ss
Request timestamp.
card
object
Required
-
Card information.
card.card_no
string
Required
-
Card number.
card.issuer
string
Required
Example: visa
Card issuer.
card.holder
object
Required
-
Cardholder information.
card.holder.name
string
Required
-
Cardholder name.
card.cvv
string
Required
-
Card CVV.
card.valid_thru_year
string
Required
Format: yyyy
Card expiration year.
card.valid_thru_month
string
Required
Format: MM
Card expiration month.
Request Sample
Response Sample
Step 2: Submit Payin with Token
POST https://gateway-test.pagsmile.com/trade/pay
Use the token returned in Step 1 to submit the payin.
Request Body
app_id
string
Required
Max length: 32
The merchant application ID assigned by Pagsmile.
timestamp
string
Required
Format: yyyy-MM-dd HH:mm:ss
Request timestamp.
out_trade_no
string
Required
Max length: 64
Merchant order number. Must be unique.
method
string
Required
Fixed value: CreditCard
Payment method.
order_amount
string
Required
Supports up to 2 decimal places
Payment amount.
order_currency
string
Required
Fixed value: COP
Payment currency.
subject
string
Required
Max length: 128
Payment subject or order title.
content
string
Required
Max length: 255
Payment content or order description.
trade_type
string
Required
Fixed value: API
Trade type.
notify_url
string
Required
Valid URL
The URL to receive payment notifications.
return_url
string
Required
Valid URL
The URL to redirect the customer after payment.
buyer_id
string
Required
Max length: 64
Merchant-side customer ID.
timeout_express
string
Optional
-
Payment expiration time.
token
string
Required
-
The card token returned by the Card Tokenize API.
issuer
string
Required
Example: visa
Card issuer.
customer
object
Required
-
Customer information.
customer.identify
object
Required
-
Customer identification information.
customer.identify.type
string
Required
Example: CC
Customer identification type.
customer.identify.number
string
Required
-
Customer identification number.
customer.email
string
Required
Valid email; max length: 64
Customer email address.
Request Sample
Response Sample
If check_url is returned, redirect the customer to the check_url to complete the required authentication process.
Last updated