Skip to content

Bigcommerce 401 error on Processing payment with code 10001 #251

@sardarusama41062

Description

@sardarusama41062

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions