Pular para o conteúdo

Checkout

Take payments on your own page or on a page hosted by NinePay

You can let NinePay collect the payment details in two ways:

In both cases, grant access through the webhook, never through the browser return.

Which one to choose

  • External checkout: the quickest integration, with no payment screen to build. The customer leaves your site and pays on a NinePay page.
  • Embedded checkout: the customer stays on your site. Payment happens in a NinePay iframe inside your page, matching its look.

Differences

External checkoutEmbedded checkout (ninepay.js)
Where the customer paysOn a NinePay page you redirect the customer toOn your page, in a NinePay iframe
What stays on your pageNo payment screenTitle, amount and the pay button; the iframe shows the methods, the card fields and the PIX QR code
Before integratingNothingRegister in the dashboard the site addresses that open the iframe (up to five)
SubscriptionCreate plan, customer and subscription, then redirect to https://checkout.ninepay.com.br/subscription/<uuid>/activateCreate the subscription with method and no card; its first invoice stays open and paying it in the iframe activates the subscription
MethodsThose on the NinePay pageCard, PIX Automático, PIX and boleto (no Open Finance: banks don't open inside an iframe)
Card dataStays on the NinePay pageGoes from the iframe straight to NinePay; your page never sees it

In both cases, the API token stays on your server only.