My mistake - I am actually already using the "MP Stripe Checkout" plugin (version 2.19.1) and not the 'Stripe Checkout'. I only realised this when I mistakenly purchased a second subscription to 'Stripe Checkout' (I'd appreciate it if you could refund this).
I just tried a new live transaction with my personal card.
The subscription was created as pending in my site before the redirection to Stripe.
I then complete the payment and I'm redirected to the subscription-complete page but the subscription status is still pending on my website
The Stripe API log triggered a checkout.session.completed event and redirected to the success _url - this redirection is a POST so I'm not sure what data was sent back from Stripe,
I checked my server's access logs and the redirection to the checkout completed page matched with the payment completed timestamp at Stripe.
Can you suggest any logging code that I could add to the plugin to see what is not working?
On a separate note - then I triggered the refund the refund completed successfully but Stripe got a 401 error in the API when I tried to contact my site
Code:
{
"error": {
"code": "reauthentication_required",
"message": "Please log in again to complete this action.",
"message_code": "reauthentication_required",
"type": "invalid_request_error"
}
}
This is presumably because its trying to send the refund response to a registered user menu item