woonuxt icon indicating copy to clipboard operation
woonuxt copied to clipboard

How to implement Paypal payment?

Open Gypsy-147 opened this issue 1 year ago • 25 comments

Hi im try to implement Paypal payment method in sandbox test mode but when im try to click paypal button in cart woonuxt client then redirect to wordpress site and cancel order?

Gypsy-147 avatar May 22 '23 19:05 Gypsy-147

im already debug in useCheckout.is at checkout?.result variable it return failure

Gypsy-147 avatar May 22 '23 19:05 Gypsy-147

i try to click paypal button in /checkout/ it work but click in cart woonuxt i have return error message like below ?? image

Gypsy-147 avatar May 22 '23 20:05 Gypsy-147

im see on example site paymentMethod is "paypal" but im debug my site is ppcp-gateway??? it is problem not redirect to paypal gateway or not?

Gypsy-147 avatar May 22 '23 20:05 Gypsy-147

Anyone can help me

Gypsy-147 avatar Jun 02 '23 17:06 Gypsy-147

Here are my settings. It might help. The Frontend URL is important for the Paypal redirect.

Screenshot 2023-06-02 at 19 50 13

And my PayPal setting is like this. screencapture-woonuxt-wp-admin-admin-php-2023-06-02-19_48_58

Hope that helps.

scottyzen avatar Jun 02 '23 18:06 scottyzen

Thanks for you reply @scottyzen what version of WooCommerce PayPal Payments becuase i check with your picture they different my Version is 2.0.4

Gypsy-147 avatar Jun 03 '23 19:06 Gypsy-147

@scottyzen please try with WooCommerce PayPal Payments i think you will see this error

Gypsy-147 avatar Jun 03 '23 22:06 Gypsy-147

Screenshot 2023-06-04 at 10 36 09

For now. It only supports the older default PayPal extension. Not the PayPal Payments Plugin.

scottyzen avatar Jun 04 '23 09:06 scottyzen

@scottyzen How i can use Paypal Standard on Woo Version 7.7.0 and WordPress 6.2.2 becuase in payment setting on woo setting missing Paypal Standard ??

Gypsy-147 avatar Jun 04 '23 11:06 Gypsy-147

I find solution for solved this problem sinc WooCommerce V 5.5 they hide paypal standard if need to open can edit file at Plugins --> woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php at line around 515 and add this [ add_filter( 'woocommerce_should_load_paypal_standard', '__return_true' ); ]

Thanks for help bro

Gypsy-147 avatar Jun 04 '23 12:06 Gypsy-147

@scottyzen why when return to merchant from paypal gateway woonuxt return error This page can’t be found need to refresh one time??

This problem i see only in Chrome both PC , Mobile but Safari not have any problem

Gypsy-147 avatar Jun 04 '23 12:06 Gypsy-147

@Gypsy-147 are you still seeing this issue?

M-GRV avatar Oct 31 '23 13:10 M-GRV

@scottyzen is this still under development? Can't we use stripe's paypal integration instead?

alexookah avatar Jan 08 '24 02:01 alexookah

@scottyzen is this still under development? Can't we use stripe's paypal integration instead?

With stripe you can enable anything you want.

Commits are still coming as of yesterday. Have you tested? Last I asked if this was still an issue and received no reply. Are you seeing an issue with paypal @alexookah ??

M-GRV avatar Jan 08 '24 15:01 M-GRV

@scottyzen I have enabled paypal in stripe but I dont see it as a payment option. Check it out here

alexookah avatar Jan 08 '24 16:01 alexookah

@scottyzen <icon v-else-if="gateway.id === 'paypal'" name="ion:logo-paypal" size="20" class="text-gray-600" />

Is this paypal gateway being used from stripe or woocomerce-paypal plugin?

alexookah avatar Jan 08 '24 22:01 alexookah

it seems stripe doesnt yet show paypal through woocomerce plugin. and reading the thread paypal is hidden need some custom override some php file.

Why is not possible to use PayPal Payments Plugin?

alexookah avatar Jan 09 '24 01:01 alexookah

@scottyzen i was thinking to implement the paypal buttons similarly like stripe has been implemented. maybe use nuxt/paypal which seems quite easy to implement. Because stripe doesnt support paypal through their library. And redirect with paypal standart is not ideal I would say.

as UX something like this (since paypal needs to render it's own paypal-buttons):

https://github.com/scottyzen/woonuxt/assets/9624843/1c7d05db-5e99-4590-b47b-06fa337bb9be

What do you think? Should we include this in the base?

alexookah avatar Jan 19 '24 18:01 alexookah

@scottyzen Can you please give your opinion on this?

alexookah avatar Jan 21 '24 01:01 alexookah

@scottyzen I saw you updated & improved the paypal standard in the base. I tried it and I noticed that clicking cancel / closing the window creates the order. Could this be fixed?

alexookah avatar Jan 25 '24 17:01 alexookah

I added this code to my functions.php file inside my theme: add_filter('woocommerce_should_load_paypal_standard', '__return_true'); but I can't see PayPal Standard in my payment settings. Do you have any advice?

diegomassaroo avatar Jul 29 '24 14:07 diegomassaroo

What problem do you have @diegomassaroo ? The latest paypal plugin also works with wooNuxt if you have enabled it Screenshot 2024-07-29 at 17 47 23

alexookah avatar Jul 29 '24 14:07 alexookah

I can't see the PayPal Standard option in my payment settings, and I can't figure out why

Screenshot 2024-07-29 at 17 10 24

diegomassaroo avatar Jul 29 '24 15:07 diegomassaroo

Install this https://woocommerce.com/products/woocommerce-paypal-payments/ It should also work!

alexookah avatar Jul 29 '24 15:07 alexookah

Unfortunately if I activate the plugin can't load the graphQL schema because it don't obtain introspection result

diegomassaroo avatar Aug 02 '24 09:08 diegomassaroo