Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bensinca authored Feb 2, 2023
1 parent 314063b commit 253a2ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ Then access the `triggerStripe` from the `VsfPaymentProvider` component and add
const processOrder = async () => {
const stripeStatus = await VsfPaymentProviderRef.value.triggerStripe();
// Only return if stripe is the only payment method you wish to have
if (!stripeStatus) return;
if (!stripeStatus || stripeStatus.message) return;
// It's recommended displaying any errors to the user, in this case it's adviced to use SfNotification component
...
};
}
Expand Down

0 comments on commit 253a2ea

Please sign in to comment.