Skip to content

Conversation

@KunJeongPark
Copy link
Collaborator

Reason for changes

  • CreateOrderParam changes for app switch, flexibility with PaymentSource Encodable

Summary of changes

  • Change VaultPaymentSource to OrderPaymentSource
  • Add fields for app switch option

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

Comment on lines +16 to +17
/// - S1: no vault (paymentSource = nil)
/// - S5: vault (paymentSource.card.attributes.vault)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey what do S1 and S5 mean?

Copy link
Collaborator Author

@KunJeongPark KunJeongPark Sep 10, 2025

Choose a reason for hiding this comment

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

Oh I just listed cases for order creation.
Scenario 1, 2, 3, 4, 5

  1. standard, no payment source
  2. standard with app switch
  3. checkout with PayPal vault (no app-switch)
  4. checkout with PayPal vault + app-switch
  5. checkout with card vault

1-4 I listed on PayPalWebViewModel, 1 and 5 in CardPaymentVM

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh nice we could define these scenarios in the README to make it more accessible. At first glance I honestly wasn't sure what S1, etc. was referring to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah but this is on the demo app. We should have good documentations of this in our official docs for merchant server side calls.

@KunJeongPark KunJeongPark merged commit 370c3e4 into feature/app-switch Sep 11, 2025
4 checks passed
@KunJeongPark KunJeongPark deleted the demo-app-order-create branch September 11, 2025 00:10
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.

3 participants