The flow
1
Create the payment
When the customer clicks Pay with Pesarc, create a payment for the cart
total on your server and get back a
checkout_url.2
Redirect to checkout
Send the customer to
checkout_url. Pesarc hosts the payment page.3
Return & confirm
Pesarc returns the customer to your
redirect_url. Mark the order paid only
after the webhook (or a status poll) confirms it settled.Server: create the order payment
Client: the button
Fulfil on settlement
Building on a platform like Shopify, WooCommerce or Medusa? The same two calls
(create payment, handle webhook) map onto that platform’s custom-payment or
app-extension APIs. Point the webhook at your app’s endpoint and mark the order
paid on
payment.settled.