Skip to content

Commit

Permalink
Update submit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerfinnell committed Oct 7, 2022
1 parent dfb3d33 commit a9d35fe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ async function submit( paymentForm ) {
.create(
{
customer_id: customerId,
payment_method_type:
__unstableLegacyFormData.paymentMethods[ 0 ].id,
payment_method_type: __unstableLegacyFormData.paymentMethods
? __unstableLegacyFormData.paymentMethods[ 0 ].id
: 'card',
},
paymentForm
)
Expand Down

0 comments on commit a9d35fe

Please sign in to comment.