Skip to content

Conversation

sshropshire
Copy link
Collaborator

@sshropshire sshropshire commented Sep 5, 2025

Summary of changes

  • This PR adds instance state restoration to PayPalWebCheckoutClient and CardClient
  • PayPalWebPayments
    • Add PayPalWebCheckoutClient.instanceState property
    • Add PayPalWebCheckoutClient.restore(instanceState: String) method
  • CardPayments
    • Add CardClient.instanceState property
    • Add CardClient.restore(instanceState: String) method

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 September 9, 2025 16:27
@sshropshire sshropshire merged commit 24d89f3 into feature/payment_client_instance_state Sep 11, 2025
5 checks passed
@sshropshire sshropshire deleted the restore_payment_client branch September 11, 2025 14:51
sshropshire added a commit that referenced this pull request Sep 19, 2025
)

* Add map utils to project.

* Implement instance state restoration in PayPalWebCheckoutClient.

* Implement instance state restoration in CardClient.

* Extract session store into its own class.

* Delete MapUtils.

* Fix broken build.

* Add unit test for SessionStore.

* Update encoding method.

* Add approve order tests to card client in regards to instance state restoration.

* Add additional unit tests for invalid input data.

* Add finishVault unit tets for client instance state restoration.

* Instantiate system under test for each individual test case.

* Implement unit tests for PayPalWebCheckoutClient.finishStart with restored instance state.

* Add PayPalWebCheckoutClient.finishVault state restoration tests.

* Simplify test by reusing auth challenge URL.

* Update CHANGELOG.
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