PAY FOR ORDER/INVOICE: this will follow payment methods..
call this endpoint to verify payments for paystack, etc, bitcoin not supported in this method yet. HOW IT WORK: posting a request to the endpoint; if the user payment method is wallet it will process the payment, deduct user wallet and mark order as paid. CARD PAYMENT REF from order detail, data.invoice_number & data.paybill_ref used to generate invoice on the payment system sdk using the data.with_paystack_fee paystack ref: invoice_number (pass this to paystack JS payment sdk) on paystack finish, call this endpoint to confirm the paystack payment.
[POST] /invoice/pay/{order_id}?user={user_id}&ref={paystack}
SWITCHWALLET PAYMENT(CRYPTO CURRENCIES) PARAMETER: crypto_currency [eg, BTC, LTC, BNB] a list of the coin we accept is available in checkout data TO GENERATE CRYPTO CURRENCY ADDRESS : same endpoint above, with param : crypto_currency TO VERIFY PAYMENT: same endpoint above. if payment is made to the address and confirmed in blockchain order will be marked as paid.
RESPONSE:
{
"data": [
{
"title": "wallet payment",
"paid": "1"
}
],
"status": "success",
"message": "",
"error": {
"detail": "",
"code": ""
}
}