Add GrabPay, and DuitNow QR and e-wallets through HitPay
- GrabPay is switched on for every merchant's own Stripe account, like FPX; stores set up earlier get it on their next check
- Merchants can connect their own HitPay account in Settings with their API key (checked with HitPay, stored encrypted) and choose DuitNow QR, Touch 'n Go and ShopeePay
- At checkout, shoppers choose Stripe (card, FPX, GrabPay) or HitPay (DuitNow QR, e-wallets); a store with only HitPay can take orders too
- HitPay orders are marked paid only after asking HitPay directly, on the return page and from HitPay's webhook
- Methods HitPay refuses are left out for an hour, the shopper pays with what is left, and the merchant sees a warning in Settings
- The HitPay key is kept out of error logs
- HITPAY_SANDBOX setting; run php artisan migrate (grabpay_requested, hitpay_accounts)
- "Get paid" card in Settings: connect Stripe, finish setup, Stripe checking, connected with payouts status
- Payment pages and discount coupons are made in the merchant's own Stripe account; we take no cut
- Checkout is closed ("not taking orders yet") until Stripe approves the store
- FPX is requested and switched on for shoppers once the merchant finishes Stripe's form
- Second webhook for payments on merchants' accounts (STRIPE_CONNECT_WEBHOOK_SECRET)
- Overview: "Connect Stripe" step and a warning for live stores that cannot take payments
- Terms and privacy pages say how merchants are paid
- New stripe_accounts table and orders.payment_account (run php artisan migrate)
EOF
- Store "Email for shoppers" in Settings: order emails come under the store's name, replies go to the store