Skip to content

Commit

Permalink
Changing nxo intent to use the one from the PayPalNativeCheckoutReque…
Browse files Browse the repository at this point in the history
…st (#672)

* -Fixing nxo intent

* Update CHANGELOG.md

Co-authored-by: Jax DesMarais-Leder <[email protected]>

---------

Co-authored-by: Jax DesMarais-Leder <[email protected]>
  • Loading branch information
kelay858 and jaxdesmarais authored Feb 3, 2023
1 parent b0d780f commit 3323189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Fix an issue where address override was not being honored in `PayPalNativeCheckoutRequest`
* Breaking changes
*`PayPalNativeRequest` requires a `returnUrl` to redirect correctly after authentication
* Fixes bug in `PayPalNativeCheckoutAccountNonce` where the `intent` was not being set correctly from the `PayPalNativeCheckoutRequest`
* ThreeDSecure
* Apply `Theme.AppCompat` to `ThreeDSecureActivity`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ PayPalNativeCheckoutAccount setupAccount(
payPalAccount.setClientMetadataId(riskId);
payPalAccount.setSource("paypal-browser");
payPalAccount.setPaymentType(paymentType);
if (approvalData.getCart() != null) {
payPalAccount.setIntent(approvalData.getCart().getIntent());
if (payPalRequest instanceof PayPalNativeCheckoutRequest) {
payPalAccount.setIntent(((PayPalNativeCheckoutRequest) payPalRequest).getIntent());
}

try {
Expand Down

0 comments on commit 3323189

Please sign in to comment.