-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hi, this is a question.
We are trying to use DELETE https://payments.bigcommerce.com/api/v2/stores/{STORE_HASH}/shoppers/1/instruments/{INSTRUMENT_ID} endpoint, but we are hitting below error:
{
"status": "error",
"id": null,
"avs_result": {
"code": null,
"message": null,
"street_match": null,
"postal_match": null
},
"cvv_result": {
"code": null,
"message": null
},
"three_ds_result": {
"acs_url": null,
"payer_auth_request": null,
"merchant_data": null,
"callback_url": null
},
"fraud_result": {
"code": "none",
"message": "Fraud service not available",
"status": "ok"
},
"gateway_response": null,
"transaction_type": null,
"payment_result": "rejected",
"fraud_review": null,
"errors": [
{
"code": "unauthorized",
"message": "Your session has expired. Please log in again."
}
]
}
Now I think this has something to do with customer login as described at https://developer.bigcommerce.com/api-docs/storefront/customer-login-api . In fact we were able to login through the mechanism mentioned there. But trying any of the below did not result in a successful attempt on the payments API:
- Passing the customer's JWT as
Authorization: VAT {JWT}, - Passing the customer's JWT as
Authorization: PAT {JWT}, - Passing the customer's JWT as
Authorization: {JWT}, - Manually passing the cookies set at https://storedomain.com to https://payments.bigcommerce.com
- Passing the
SHOP_SESSION_TOKENcookie's value to https://payments.bigcommerce.com asAuthorization: {Token}.
In short, I need some documentation around how we can login properly for a given customer. Can you advice?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels