Support the intent of a sale and user-confirmation prompt to associate sale with them. For use in webshop checkout with Stregsystem as payment provider.
This is opposed to the very loose /api/sale-endpoint. This will also provide a clearer overview OOTB to implement for Stregsystem API consumers.
Works as a normal payment intent like PayPal or Stripe,
Webshop frontend asks Webshop backend to make sale intent and return confirmation URL
Webshop backend creates sale intent using API call to Stregsystem. Supplies: webhook url and buystring
Stregsystem returns ID and confirmation URL to Webshop backend
Webshop backend retruns confirmation URL to Webshop frontend
Webshop frontend opens confirmation URL in popup
Popup authenticates a member, and asks them to confirm the payment, Popup closes
Stregsystem POSTs intent update to Webshop backend and it ships the product
New APIs:
/api/sale/intent Open for everyone(?), that accepts webhook callback URL, room number and buystring
Support the intent of a sale and user-confirmation prompt to associate sale with them. For use in webshop checkout with Stregsystem as payment provider.
This is opposed to the very loose
/api/sale-endpoint. This will also provide a clearer overview OOTB to implement for Stregsystem API consumers.Works as a normal payment intent like PayPal or Stripe,
Webshop frontendasksWebshop backendto make sale intent and return confirmation URLWebshop backendcreates sale intent using API call toStregsystem. Supplies: webhook url and buystringStregsystemreturns ID and confirmation URL toWebshop backendWebshop backendretruns confirmation URL toWebshop frontendWebshop frontendopens confirmation URL in popupPopupauthenticates a member, and asks them to confirm the payment,PopupclosesStregsystemPOSTs intent update toWebshop backendand it ships the productNew APIs:
/api/sale/intentOpen for everyone(?), that accepts webhook callback URL, room number and buystring