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

Vault Without Purchase #173

Merged
merged 52 commits into from
Aug 17, 2023
Merged

Conversation

sshropshire
Copy link
Collaborator

@sshropshire sshropshire commented Aug 8, 2023

Summary of changes

  • Implement server initiated Vault without Purchase
  • Add CardClient#vault() method
  • Add VaultRequest and VaultResult types for interacting with the CardClient#vault() method
  • Add VaultListener interface to receive CardClient#vault() success and failure results
  • Add vaultListener property to CardClient
  • iOS equivalent PR: Vault without Purchase paypal-ios#172
vault-without-purchase-downscaled.mp4

Checklist

  • Added a changelog entry

Authors

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

@sshropshire sshropshire marked this pull request as ready for review August 9, 2023 15:51
@sshropshire sshropshire requested a review from a team as a code owner August 9, 2023 15:51
@sshropshire sshropshire force-pushed the merchant_server_vault_without_purchase branch from cf54923 to bd4a6fc Compare August 14, 2023 19:30
uiState = uiState,
onCreateSetupTokenSubmit = { createSetupToken() },
onAttachCardToSetupTokenSubmit = { attachCardToSetupToken() },
onCreatePaymentTokenSubmit = { createPaymentToken() },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same Q as on iOS - do we need to display the paymentToken in our Demo? Also, i'm still unclear on what a merchant is supposed to do with a paymentToken on their server after they get it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The demo app is designed to highlight interactions between client and server. Displaying the payment token is evidence that the vault completed successfully. A payment token can be used as a payment_source in PPaaS, I believe.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The demo app is designed to highlight interactions between client and server. Displaying the payment token is evidence that the vault completed successfully. A payment token can be used as a payment_source in PPaaS, I believe.

Copy link
Collaborator

@scannillo scannillo left a comment

Choose a reason for hiding this comment

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

🎊 Awesome! Last comment I have is that we make a ticket for updating our docs/ directory with vault instructions

@sshropshire
Copy link
Collaborator Author

Last comment I have is that we make a ticket for updating our docs/ directory with vault instructions

We do have DTPPCPSDK-700 that involves docs. We haven't done docs driven here mostly because we were learning each step of the way.

@sshropshire sshropshire merged commit dbe0fe0 into main Aug 17, 2023
6 checks passed
@sshropshire sshropshire deleted the merchant_server_vault_without_purchase branch August 17, 2023 19:43
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.

4 participants