For the complete documentation index, see llms.txt. This page is also available as Markdown.

Credit Card

This endpoint allows you to submit a payin by CreditCard in Argentina.

To submit a CreditCard payin, you need to tokenize the card first, and then use the returned token to submit the payment.

Argentina CreditCard supports partial refund.

Step 1: Tokenize Card

Use the Card Tokenization API to tokenize the card information.

POST https://security-test.pagsmile.com/card/tokenize

Request Body

Parameter
Type
Required
Constraints
Description

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; max length: 19

Request timestamp.

card.card_no

string

Required

Card number; use a valid test card number in the sandbox environment

Card number.

card.issuer

string

Required

Example: visa

Card issuer.

card.holder.name

string

Required

-

Cardholder name.

card.cvv

string

Required

3 or 4 digits

Card CVV.

card.valid_thru_year

string

Required

Format: yyyy

Card expiration year.

card.valid_thru_month

string

Required

Format: MM; value: 0112

Card expiration month.

Request Sample

Response Sample

Step 2: Submit Payin with Token

Use the returned token to submit a CreditCard payin.

POST https://gateway-test.pagsmile.com/trade/pay

Request Body

Parameter
Type
Required
Constraints
Description

app_id

string

Required

Max length: 32

The merchant application ID assigned by Pagsmile.

timestamp

string

Required

Format: yyyy-MM-dd HH:mm:ss; max length: 19

Request timestamp.

version

string

Required

Fixed value: 2.0

API version.

order_amount

string

Required

Supports up to 2 decimal places

Payment amount.

order_currency

string

Required

Fixed value: ARS

Payment currency.

method

string

Required

Fixed value: CreditCard

Payment method.

out_trade_no

string

Required

Max length: 64

Merchant order number. Must be unique.

subject

string

Required

Max length: 128

Payment subject or order title.

notify_url

string

Required

Valid URL

The URL to receive payment notifications.

buyer_id

string

Required

Max length: 64

Merchant-side user ID.

token

string

Required

Card token returned by the card tokenization API

The tokenized card information used to submit the card payment.

customer.identification.type

string

Required

Example: CUIT

Customer identification type.

customer.identification.number

string

Required

Required length: 11 digits for CPF, 14 digits for CNPJ

Customer identification number.

Request Sample

Response Sample

Last updated