Hello RevenueCat team and community!
I’m trying to integrate Stripe with RC and so far i’ve been following the steps of this documentation
After receiving both checkout events in my backend server: customer.subscription.created and checkout.session.completed I send a POST request to the receipts endpoints.
Every time I send a request the response I get is the following:
{
"code":7103,
"message":"The receipt is not valid."
}
Even if I try to send manual requests from the terminal using cURL i will get the same response. Here is an example:
curl -X POST \
https://api.revenuecat.com/v1/receipts \
-H 'Content-Type: application/json' \
-H 'X-Platform: stripe' \
-H 'Authorization: Bearer strp_xxxxx' \
-d '{ "app_user_id": "my_app_user_id",
"fetch_token": "sub_xxxxx"
}'
I took the Authorization token from the Stripe App Public API KEY created in the RC dashboard
Some additional info:
- I’m not the owner of the RC project, neither the Stripe account. Yet I have admin privileges in both accounts so I’m able to connect the RC account with the Stripe Account thru the RC app in the Stripe Dashboard.
- Tried several times to unlink, uninstall and start again the integration process
- Tried with Stripe live products and test products.
Have anyone faced the same issue?