Payments (sandbox)
Providers
Section titled “Providers”| Provider | Status |
|---|---|
Sedra sandbox (pp_foulad-sandbox_foulad-sandbox) |
Available in development: success, decline, pending with signed webhook, capture, partial refunds with over-refund protection, cancellation |
| Tap Payments (BENEFIT debit, Apple Pay, mada, KNET, cards) | Planned. First candidate for Bahrain. Needs a merchant account. |
| BENEFIT Payment Gateway, BenefitPay | Planned, through an acquiring bank or aggregator |
| MyFatoorah, Amazon Payment Services | Options under evaluation |
Live providers will be added as Medusa payment provider modules and tested against each provider’s sandbox before any real transaction. Sedra never stores card data: hosted payment pages and tokens stay with the provider.
Using the sandbox in checkout
Section titled “Using the sandbox in checkout”# after creating a cart with items, address and a shipping method:curl -X POST https://api.sedra.one/store/payment-collections \ -H "x-publishable-api-key: $PK" -H "content-type: application/json" \ -d '{"cart_id":"'$CART_ID'"}'
curl -X POST https://api.sedra.one/store/payment-collections/$PAYCOL_ID/payment-sessions \ -H "x-publishable-api-key: $PK" -H "content-type: application/json" \ -d '{"provider_id":"pp_foulad-sandbox_foulad-sandbox"}'
curl -X POST https://api.sedra.one/store/carts/$CART_ID/complete -H "x-publishable-api-key: $PK"Who can move money
Section titled “Who can move money”- Shoppers pay through checkout.
- Refunds requested by an integration or AI (
orders.refund) never execute directly. They create an approval request; a person approves it in the Sedra app, then Sedra runs the refund. - Marketplace payouts are calculated and reported (
marketplace.payouts.summary). Sedra does not transfer money to vendors.
Currency
Section titled “Currency”BHD is the default currency, with three decimal places. The Bahrain region applies 10% VAT.