Skip to content

Commit 0cb47f0

Browse files
Merge pull request #629 from codex-team/fix/payment-cancelling
fix(payments): use different widget method for card verification
2 parents 1bda611 + 8a7936d commit 0cb47f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/modals/PaymentDetailsDialog.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,9 @@ export default Vue.extend({
587587
amount = AMOUNT_FOR_CARD_VALIDATION;
588588
}
589589
590-
widget.pay('charge',
590+
const method = this.isOnlyCardValidationNeeded ? 'auth' : 'charge'
591+
592+
widget.pay(method,
591593
{
592594
publicId: process.env.VUE_APP_CLOUDPAYMENTS_PUBLIC_ID,
593595
description: this.$t('billing.cloudPaymentsWidget.description', {

0 commit comments

Comments
 (0)