• Resolved juliano189

    (@juliano189)


    Hi guys,

    first of all big compliment for your plug in. I implemented it in a woocommerce shop addressing Chineses customers.

    We now face the problem that if a customer wants to pay with Alipay, he gets forwarded to Alipay and after the payment right back to the checkout area. For the customer it doesn’t look like he did a purchase.

    Can you help me with this topic?

    Best greetings,

    Julian

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @juliano189,

    The plugin uses the result of the $order->get_checkout_order_received_url() call to redirect. That should be the order received url unless you have a plugin or a theme that is changing that url via the WC filter.

    What is the status of the AliPay payment?

    Kind Regards,

    Thread Starter juliano189

    (@juliano189)

    Hi Mr. Clayton,

    thanks a lot for your quick response.

    Status: At the moment AliPay is not activated as we’re facing the described issue. But we activated e.g. WeChat Pay where the forwarding is working.

    Unfortunately I don’t have any experience in coding this is why I don’t know what to dou with your information regarding: $order->get_checkout_order_received_url(). Can you tell me where I can look up if all settings are correct?

    Looking forward to hearing from you,

    Julian

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @juliano189,

    That’s interesting that for payments other than Alipay it works as expected because it’s all the same code.

    Are you aware of any custom code that’s been written for your site?

    Try this:
    Perform an Alipay payment, making sure you have webhooks configured, and once you’re redirected back to the checkout page check the status of the payment in Stripe. Let me know what that status is so I can compare it to the statuses used in the plugin.

    Kind regards,

    Thread Starter juliano189

    (@juliano189)

    Hi @mrclayton,

    first again thanks for your help and sorry for the long period of no answer.

    Today we made a test purchase with WeChat Pay. The result was that the QR Code wasn’t shown properly. So the payment wasn’t possible.

    With Alipay the payment is working but afterwards the customer gets forwarded the the checkout area again. So the customer can’t actually see that he did the purchase.

    Can you tell me which webhooks I need to configure where?

    I’m happy to send screenshots if it’s necessary.

    Are you able to help?
    Thanks for your help in advance!

    Plugin Author Payment Plugins

    (@mrclayton)

    @juliano189,

    All the required webhooks are documented in the plugin’s documentation. Links to that are located on the API Settings page.

    Check for CSS conflicts if the QR code isn’t showing properly.

    See my previous reply about how to test.

    Kind Regards,

    Thread Starter juliano189

    (@juliano189)

    Hello @mrclayton,

    thanks for you answer. All webhooks are configured. The payment status is “charge succeeded”.

    I can’t find any CSS conflict so far.

    Do you have any idea what else to do?

    Best greetings from Berlin,

    Julian

    Plugin Author Payment Plugins

    (@mrclayton)

    @juliano189

    What is the status of the source for that payment?

    Kind Regards

    Thread Starter juliano189

    (@juliano189)

    Hi @mrclayton

    Do you mean the source ID? This is: src_1HTpPUFxPi0wdqlVLUbuMDJg

    Best,

    Julian

    Plugin Author Payment Plugins

    (@mrclayton)

    @juliano189,

    I mean the status of that source ID. Sources have their own status in Stripe.

    Kind Regards,

    Thread Starter juliano189

    (@juliano189)

    HI @mrclayton,

    the status is “consumed”.

    Best,

    Plugin Author Payment Plugins

    (@mrclayton)

    @juliano189,

    That means the payment was processed correctly so they only issue is with the redirect.

    Can you make sure you don’t have any code that’s hooking in to the woocommerce_get_checkout_order_received_url filter.

    Here is a link to the source code where the redirect url is based on the order’s checkout order received url. That would only point to the checkout page if a filter was being used to alter it.

    https://docs.paymentplugins.com/wc-stripe/api/source-class-WC_Stripe_Redirect_Handler.html#48

    Thread Starter juliano189

    (@juliano189)

    Hi @mrclayton ,

    I checked the code and it’s 100% identical.

    Do you have any other idea of how to solve this problem?

    Best greetings,

    Julian

    Plugin Author Payment Plugins

    (@mrclayton)

    @juliano189

    It’s not the code that wouldn’t be identical. I was asking you to check to see if any of your plugins or some custom code was hooking in to the woocommerce_get_checkout_order_received_url filter.

    The redirect works as expected in all my tests. Try deactivating all plugins but Woo and Stripe and switch to 2020 theme and test.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Alipay implementation: Problem with redircetion after purchase’ is closed to new replies.