#dannyboy
1 messages · Page 1 of 1 (latest)
I'm not familir with Stripe mock, but you may post your question here and I'll check if it's something that I can help
so i'm a rails developer and using cucumber to test end-to-end scenarios.
I'm currently in the process of replacing our CardElement into PaymentElement to support wallet payments.
Got some problems with our failing scenarios and not quite sure how to fix it..
The PaymentIntent i created is in test mode.
"id": "test_pi_4",
"object": "payment_intent",
"amount": 1080,
But on the JS side... it says that the client_secret doesn't exists
on this part...
options = {
clientSecret: '#{@payment_intent.client_secret}',
};```
as i check, the value of stripe_publishable_key is not from the test server..
i think this is not the right channel 😄
It's currently stateless. Data created with POST calls won't be stored so that the same information is available later.```
not sure how i fix these scenarios
it's too vital not to be recovered
to make the question short..
How can i use the PaymentElement flow using mock server?
Let me check and get back to you
stripe-mock returns dummy response. You'd need real Payment Intent to initialise Payment Element, i.e. create Payment Intent in test mode