Skip to content

Commit

Permalink
Fixing card payment without 3Ds
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharindu Kumarasiri committed Aug 28, 2024
1 parent 541ecb4 commit d962513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payment_sdk/src/context/MainStateProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const MainStateProvider = (props: KomojuProviderIprops) => {
if (response?.status === PaymentStatuses.PENDING) {
openURL(response.redirect_url);
} else if (response?.status === PaymentStatuses.SUCCESS) {
if (response?.payment?.status === PaymentStatuses.SUCCESS) {
if (response?.payment?.status === TokenResponseStatuses.CAPTURED) {
onPaymentSuccess();
} else if (response?.payment?.payment_details?.instructions_url) {
openURL(response?.payment?.payment_details?.instructions_url);
Expand Down

0 comments on commit d962513

Please sign in to comment.