Checkout Page (General)

How to use Pagsmile Checkoutpage to submit a payin.

Payin by using Pagsmile checkout page

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

This endpoint allows you to submit a payin by using Pagsmile checkout page

Headers

Name
Type
Description

Content-Type*

string

application/json; chartset=UTF-8

Authorization*

string

Basic Base($app_id:$security_key)

Request Body

Name
Type
Description

app_id*

string

created app's id at dashboard

- Max. 32 chars -

method

string

Add this object to show only the selected method. For instance, “method”: “PIX” will only show the PIX method. To show all the methods do not add this object in the request body. Check here for all methods

out_trade_no*

string

ID given by the merchant in their system - Max. 64 chars -

notify_url*

string

Where Pagsmile will send notification to

timestamp*

string

yyyy-MM-dd HH:mm:ss - Max. 19 chars -

subject*

string

payment reason or item title

- Max. 128 chars -

order_amount*

string

order amount - 0.01 ~ 999999999 -

(refer to amount limit for different methods)

order_currency*

string

order currency - Max. 3 chars - Check here for all methods.

content*

string

payment reason detail or item detail. This will be shown on the bank bill.

- Max. 255 chars -

buyer_id*

string

merchant user's id

channel

string

only use when method = Wallet

trade_type*

string

fixed value: WEB

return_url

sring

web redirect url when payment is finish

timeout_express

string

m(minutes), h(hours), d(days), c(always end in current day).

Used to control the expiration time of submitting an order (from initial to processing). (90m in default, max 15d)

version*

string

fixed value: 2.0

customer.name

string

User's name

- Will be pre-filled on the checkout page -

customer.phone

string

User's phone

- Will be pre-filled on the checkout page -

customer.email

string

User's email

- Will be pre-filled on the checkout page -

customer.identify.number

string

User's identification number

- Will be pre-filled on the checkout page -

customer.identify.type

string

User's identification type

- Will be pre-filled on the checkout page -

address.zip_code

string

zip code

- Will be pre-filled on the checkout page -

regions

array

regions of the payment. Required if using Global App. The format is ISO 3166-1 alpha-3 - ARG, BRA, etc. Check here -

Check here for supported methods.

  • If not passing the parameter "method" or pass "method": "", all enabled methods will be shown to the user on the checkout page.

  • If passing "method": "PIX", only PIX will be shown to the user on the checkout page.

Example

Note: 162************38 is pagsmile's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.

The Checkout page without specifying "method"
The Checkout page with specifying "method":"PIX" (as an exmaple)

Last updated

Was this helpful?