CreateCheckoutSession

This endpoint is there to create a checkout session with redirect url

POST https://sandbox.pgecom.com/api/v1/checkout

Request Body

Name
Type
Description

merchantId

String

shopId

String

paymentMethod

String

customer.name

String

customer.email

String

customer.phone

String

shippingAddress.apartment

String

shippingAddress.line1

String

shippingAddress.city

String

shippingAddress.state

String

shippingAddress.country

String

shippingAddress.postalCode

Number

billingAddress.apartment

String

billingAddress.line1

String

billingAddress.city

String

billingAddress.state

String

billingAddress.country

String

billingAddress.postalCode

Number

currency

String

products[0].shopId

String

products[0].quantity

Number

products[0].price

Number

products[0].id

String

products[0].name

String

successUrl

String

errorUrl

String

Last updated

Was this helpful?