Shopify and stripe account not valid

publioquintero
Shopify Partner
2 0 0

Hi,

 

I'm creating an app to buy using the Rest API. I do complete the checkout and Shopify returns a value called "shopify_payment_accont_id". This value is supposed to contain an account number that I can send to stripe to get a token so I can complete the payment process.

 

The problem is that the value is not valid.

 

POST /v1/tokens HTTP/1.1
Host: api.stripe.com
Authorization: my_stripe_secret_key
Stripe-Account: shopify_payment_account_id_value
Content-Type: application/x-www-form-urlencoded

{
    "card": {
        "number": "card_number",
        "exp_month": xx,
        "exp_year": xxxx,
        "cvc": xxx
    }
}

 Response: 

{
    "error": {
        "code": "account_invalid",
        "doc_url": "https://stripe.com/docs/error-codes/account-invalid",
        "message": "The provided key 'my_stripe_secret_key' 
 does not have access to account 'shopify_payment_account_id_value' (or that account does not exist). Application access may have been revoked.",
        "type": "invalid_request_error"
    }
}

And this is happening with all the stores since two months ago. It was working really well before.

 

Thanks.

Replies 0 (0)