Skip to main content
Version: v1

Multi-product cart feature

Warning: work in progress. It's possible that some references could be changed while development.

The process that we will follow is:

  1. Let the customer configure the multi-product cart on marketplace's website.
  2. As soon as the customer finishes the configuration, the marketplace sends a POST request to an endpoint with that information so we build the cart on our side.
  3. After building the cart on our side, that endpoint will return an UUID.
  4. With that UUID, the marketplace redirects the customer to our funnel with that UUID as a GET parameter. We will use that UUID to display the same cart that the customer configured on marketplace's website.
  5. Customer will be able to configure the last things on our funnel (delivery mode, personal information, etc). If the customer wants to add/remove things from the cart, he should go back to marketplace's website to do it (and start the process again, from #2 point).
  6. MyBB handles the purchase and payment process.
  7. After the payment gets confirmed, MyBB redirects the customer to the URL value received on #2 point (return_url).

1. Create cart object

After the customer configures the cart on marketplace's website, the marketplace should POST to this endpoint (#2 point) and should receive an UUID (#3 point). With that UUID, the customer should be redirected to MyBB website and the cart will be built thanks to that UUID.

To create this Cart object on our side, we will need to receive:

  • Partner/marketplace UUID
  • Network giftcards data
  • Network vouchers data
  • Return URL (to be used to redirect after successful payment)
  • Themed PDF ID

Further information and docs of this endpoint, can be found here.