Dreamvention / paypal

PayPal Checkout Integration
https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=38358
8 stars 7 forks source link

[3.x.x] PayPal Later still not working (V3.0.1) #25

Closed mhcwebdesign closed 3 months ago

mhcwebdesign commented 3 months ago

Why is it so hard to get a working PayPal Later? See attached screenshots, just tested your V3.0.1 on OpenCart 3.0.x.x

There are probably other flaws, but this is a most obvious one.

When will there be a stable release?

Alternatively, if you can't fix it, then remove PayPal Later feature. Or we are going to remove your PayPal Integration altogether in the upcoming OpenCart 3.0.4.0 and go for another Paypal extension. Screenshot_2024-03-19_23-04-02 Screenshot_2024-03-19_23-00-55 Screenshot_2024-03-19_23-00-15

rsenmakh commented 3 months ago

Please try to clear your cache or open your browser in incognito mode. We are only able to test the PayLater feature in SandBox mode. Our Estonian production account does not support this feature. Please take a look at the video OpenCart 3.0.3.8 - PayLater

This feature is only available for merchants from: Australia, Germany, Spain, France, the United Kingdom, Italy, and the United States. And even if the merchant, for example, is from the USA, and the client visited the site from Ukraine, the client will not see the Pay Later button.

mhcwebdesign commented 3 months ago

@rsenmakh : I did that, for a UK-based site and location, with a UK-based PayPal account. The checkout sequence correctly offers the Buy Now Pay Later with PayPal payment method, but the final checkout step (Confirm Order) only generates an empty button, with the following code:

<div id="paypal_form">
    <div id="paypal_button" class="paypal-button clearfix" style="text-align: right;">
        <div id="paypal_button_container" class="paypal-button-container" style="display: inline-block; width: 350px;"></div>
    </div>
</div>
<script type="text/javascript">

if (typeof PayPalAPI !== 'undefined') {
    PayPalAPI.init();
}

</script>

Have you actually tested it at all?

rsenmakh commented 3 months ago

Hey, did you read my message? Did you watch the video I sent? Do you still have a question if we tested it?

mhcwebdesign commented 3 months ago

Yes, I watched your video. As I said, the Pay Later buttons aren't generated anywhere, neither on the product page, nor in the checkout sequence, even though I enabled it via the admin backend, see attached screenshot. Screenshot_2024-03-20_13-28-43

rsenmakh commented 3 months ago

You have enabled the "Pay Later" message, but you have not enabled the "Pay Later" button. Please click on the following link to view the screenshot: https://prnt.sc/CIHZBWZ0V5an

mhcwebdesign commented 3 months ago

Yes, already enabled for checkout, cart, and product, see screenshot. Screenshot_2024-03-20_13-41-55

mhcwebdesign commented 3 months ago

Further to this, I also enabled debug logging, but the paypal.log has no entries. It correctly uses the paypal_later.twig, and calls the PayPalAPI.init();

Is there anything else I need to look into, to find out why it won't generate the expected Pay Later button?

Update: I think I found the reason why it failed to generate the Pay Later button: Being a UK merchant, it only works when the GBP currency is selected, it won't accept the USD! So your extension needs at least a bugfix for the checkout step 5 where the Pay Later option should only be offered when the currently selected currency is the correct one.

rsenmakh commented 3 months ago

You are right. It depends on the currency as well. We will fix it.

mhcwebdesign commented 3 months ago

You are right. It depends on the currency as well. We will fix it.

Thanks for looking into it. After the bugfix, could you also change the version to e.g. 3.0.2, to avoid confusions? Let me know when done, so we can integrate it into the upcoming OC 3.0.4.0.

rsenmakh commented 3 months ago

Hi @mhcwebdesign , The extension has been updated on GitHub https://github.com/Dreamvention/paypal/releases/tag/v3.0.2

Please check the default country and default currency in the extension settings.

image
mhcwebdesign commented 3 months ago

Thanks. Just tested it, and it works fine, much appreciated. I have now updated the OpenCart 3.0.x.x branch accordingly, just on time before the upcoming new OpenCart 3.0.4.0 release.