Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement Paypal payment? #45

Open
Gypsy-147 opened this issue May 22, 2023 · 20 comments
Open

How to implement Paypal payment? #45

Gypsy-147 opened this issue May 22, 2023 · 20 comments

Comments

@Gypsy-147
Copy link

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
Copy link
Author

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

@Gypsy-147
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Anyone can help me

@scottyzen
Copy link
Owner

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.

@Gypsy-147
Copy link
Author

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
Copy link
Author

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

@scottyzen
Copy link
Owner

Screenshot 2023-06-04 at 10 36 09

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

@Gypsy-147
Copy link
Author

@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
Copy link
Author

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
Copy link
Author

Gypsy-147 commented Jun 4, 2023

@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 Gypsy-147 reopened this Jun 4, 2023
@M-GRV
Copy link

M-GRV commented Oct 31, 2023

@Gypsy-147 are you still seeing this issue?

@alexookah
Copy link
Contributor

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

@M-GRV
Copy link

M-GRV commented Jan 8, 2024

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

@alexookah
Copy link
Contributor

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

@alexookah
Copy link
Contributor

alexookah commented Jan 8, 2024

@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
Copy link
Contributor

alexookah commented Jan 9, 2024

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
Copy link
Contributor

alexookah commented Jan 19, 2024

@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):

Screen.Recording.2024-01-19.at.20.31.10.mov

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

@alexookah
Copy link
Contributor

@scottyzen Can you please give your opinion on this?

@alexookah
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants