Appearance
Testing your integration
BMA staff can give you your marketplace as a draft first. A draft is visible only to BMA staff and to sessions your own host signs, so you can test everything with real screens and no customers.
Steps
- Embed on a test page that is one of your embed origins (ask BMA staff to add a test origin if needed).
- Sign in as three kinds of user and check what each sees:
- someone with no
mp_roles: can browse, can't buy; - a
buyer: sees Billing and can buy; - a
host_admin: sees Manage.
- someone with no
- Break the token on purpose (wrong secret, old
exp, reusedjti) and check your page handlesmp:sessionwithsigned_in: false. Thereasontells you which check failed (table). - Call the host API with your key:
GET /me, thenPUT /customers/<id>for a test customer, thenGET /customers/<id>/entitlements. - Add a webhook endpoint, click Send test, and check your server verifies the signature.
- Place a test order as the test customer, on a free or invoiced plan BMA staff point you to, and check you get
entitlement.grantedand thatactiveistruein the entitlements answer. - Ask BMA staff to cancel the test subscription, and check you get
entitlement.revoked.
Before you go live
0 of 8 done · ·