Ionic + stripe + woocommerce token payment
-
Hi
i got a problem with the plugin: WooCommerce Stripe Gateway 1.6.15
“my mistake to update the plugin”flow
https://drive.google.com/open?id=1whsHOi4hexYkb0unVc_UNh6sWZtWil5X
The flow is simple to understand.With the current plugins this flow no longer works, the token is valid but the plugin does not know how to send it to stripe or omits information so that the payment is complete.
When I make a payment from the page, the following flow occurs in stripe:
1) 200 OK retuns __SECRET_TEMP_KEY = POST /v1/payment_intents
2) 200 OK POST /v1/payment_intents/__SECRET_TEMP_KEY/confirmWhen I send the token from my ionic app.
in my code rest a create a new class$_POST[‘stripe_token’] = $payment_token;
$_POST[‘payment_method’] = $payment_method;$ wc_gateway_stripe = new WC_Gateway_Stripe ();
$ payment_result = $ wc_gateway_stripe-> process_payment ($ order_id);stripe response
[error] => stdClass Object
(
[code] => resource_missing
[doc_url] => https://stripe.com/docs/error-codes/resource-missing
[message] => No such payment_intent: tok_1F7nTbIZf71qiSGg3Y8MjwrN
[param] => intent
[type] => invalid_request_error
)any suggestions?
- The topic ‘Ionic + stripe + woocommerce token payment’ is closed to new replies.