• Resolved guntercn

    (@guntercn)


    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/confirm

    When 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter guntercn

    (@guntercn)

    correction
    i got a problem with the plugin: WooCommerce Stripe Gateway Versión 4.2.3

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey there @guntercn

    This is a fairly complex development topic. Have you asked the developers of this Ionic app?

    I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    1. WooCommerce Slack Community: https://woocommerce.com/community-slack/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
    3. Or hire a WooCommerce experienced developer WooCommerce Customizations Page

    Thanks,

    Thread Starter guntercn

    (@guntercn)

    Hi dougaitken

    Ionic its not the problem.

    The problem is, int this plugin “WooCommerce Stripe Payment Gateway”, the owner changed a code section related to payment-charge.

    class
    class-wc-gateway-stripe.php
    function
    process_payment
    object
    $prepared_source

    the system does not understand or interpret that it is a payment-charge what have to do!

    Solution: (1 week ago)
    I had to look for a previous version and develop a new method in the current plugin version, so that the system interprets when it is a payment-charge or normal payment!

    The code has 1 week of working in production and works fine. the bad thing is that I have to modify it again to program it elegantly.

    thank you anyway!

    • This reply was modified 5 years, 3 months ago by guntercn.

    Hello,

    I can confirm that my transaction flow was broken with WooCommerce Stripe 4.2.3 in my headless WP + WooCommerce + Stripe app.

    Rolling back to WooCommerce Stripe 4.1.8 fixed it.

    In my case, I was getting a resource_missing error and what it looks like is that the token is created but by the time the request is sent to Stripe from WC, the token is invalid.

    Or, the new plugin is requiring createSource instead of createToken and thus something is missing when the request is sent to Stripe with only a token.

    In any event, this is a breaking change and should be looked into as my transactions were failing 100% of the time with 4.2.3 and not at all with 4.1.8.

    Thanks!

    I’m happy to file a separate issue on GitHub with more info if that would be helpful.

    @joshuaiz

    It seems that while similar, there are slight differences that indicate that this is not the same issue that the OP is up against.

    Anyhow, we are covering your case in the ticket that is open with us.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ionic + stripe + woocommerce token payment’ is closed to new replies.