Expected behavior
Actual behavior
i'm trying to process payment in bigcommerce by using Payment API.
But i'm getting the error of 401.
i have followed the doc but unable to solve the issue, i have also provided the Authorization code for cards, but it's not working for me.
here is my request to bigcommerce payment APi
axios(${store.PAYMENT_API}/, { headers: { 'Accept': 'application/vnd.bc.v1+json', 'Content-Type': 'application/json', 'Authorization': PTA ${accesstoken} }, method: 'POST', data: { "payment": { "instrument": {}, "payment_method_id": "cod", "amount": 81505146, "currency_code": "PKR" } } } ) .then(res => { console.log(res) dispatch({ type: 'SET_PAYMENT_METHODS', }) })
Steps to reproduce behavior