Create a Payment Page

Creates a new checkout session for your customer to complete the payment. PagSeguro will generate a link to the payment page where the customer can finalize the transaction. You can specify a preferred payment method or allow the customer to choose from available options.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integration
object
required

Object containing the integration data referring to the Merchant Store.

order
object
required

Contains the list of products purchased by the customer from the merchant's store along with their respective values.

checkout
object
required

Defines how the PagSeguro Checkout will be displayed to the Customer.

charge
object
required

The charge object contains the payment details required to generate the transaction.

The checkout can present payment methods to the customer in two ways:

  • By specifying a payment type.
  • By selecting a specific payment method.

The type represents a category of payment methods, allowing the checkout to display all associated options.

Alternatively, you can specify a particular payment method directly.

For example, setting the type = credit_card enables the customer to choose from available card brands. However, if you set credit_card = VISA, you will directly select that payment method for your client.

If the type is omitted, the checkout will present all available payment methods to the customer.

payer
object

Contains information about the Customer who made the purchase on the Merchant. This object is optional, but if provided, the parameters payer.person.phone.country_code and payer.person.phone.number are mandatory.

Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json