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

feat(docs): add combined docs for paypal #1641

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cyl3x
Copy link

@cyl3x cyl3x commented Jan 24, 2025

Description

The current documentation on integrating PayPal only covers Express Checkout. Therefore, we would like to adapt the existing documentation to cover both a standard PayPal checkout and an express checkout.

Type of change

Tweak the existing documentation, as most of it is generic for a PayPal checkout anyway, and add some dedicated sections for the express case.

ToDo's

Currently, the different sections for standard and express checkout are duplicated. Perhaps there is a better way to structure this?

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontends-demo ✅ Ready (Inspect) Visit Preview Jan 24, 2025 1:02pm
shopware-frontends-docs ✅ Ready (Inspect) Visit Preview Jan 24, 2025 1:02pm

@cyl3x cyl3x requested a review from mstegmeyer January 24, 2025 13:14
@cyl3x cyl3x self-assigned this Jan 24, 2025
Copy link

@mstegmeyer mstegmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to go the extra mile, you could also document other payment methods, such as ACDC, Google Pay, Apple Pay, PUI 🤔 or at least list the ones, for which the buttons are required and this tutorial works.

orderCreated.value = await createOrder({
paypalOrderId: data.orderID,
// optional - can be acdc, applepay, googlepay or venmo
product: 'sbp',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spb, not sbp ;)
Also, please document which product for which payment method, since it may be important, because different paymentSources get filled.

Comment on lines +208 to +210
orderId: orderCreated.value.id,
successUrl: `${window.location.origin}/order/success?order=${orderCreated.value.id}&success=true`,
errorUrl: `${window.location.origin}/order/success?order=${orderCreated.value.id}&success=false`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't that need the paypalOrderId to capture the created order? Same below in the existing example, I believe this was always an issue that this was not documented.

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

Successfully merging this pull request may close these issues.

2 participants