Skip to content

Support sale intents #629

@krestenlaust

Description

@krestenlaust

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,

  1. Webshop frontend asks Webshop backend to make sale intent and return confirmation URL
  2. Webshop backend creates sale intent using API call to Stregsystem. Supplies: webhook url and buystring
  3. Stregsystem returns ID and confirmation URL to Webshop backend
  4. Webshop backend retruns confirmation URL to Webshop frontend
  5. Webshop frontend opens confirmation URL in popup
  6. Popup authenticates a member, and asks them to confirm the payment, Popup closes
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions