API
Skip to main content

MB WAY

Checkout creation with the following data:

  • Language: Português
  • Page layout: web
  • Amount: 5€
  • Payment method: MBWay (MW)
  • Product code: REFPRODUTO_1
  • Product description: Computador
POST /checkouts
{
"payment": {
"amount": 500,
"code": "REFPRODUTO_1",
"summary": "Computador",
"paymentMethod": {
"code": "MW" // <== Método de pagamento
}
},
"page": {
"language": "PT",
"layout": "web"
},
"redirects": [
{
"type": "success",
"url": "https://www.url-apos-sucesso.dominio"
},
{
"type": "cancel",
"url": "https://www.url-apos-cancelamento.dominio"
},
{
"type": "back",
"url": "https://www.url-voltar.dominio"
}
]
}
The response returns the id which identifies the checkout to the API.
The checkoutUrl is the link to access the page and make the payment.
The paymentId is the payment identifier.

Upon accessing the checkoutUrl the following page is displayed:

Checkout MW