mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added real payment to js
This commit is contained in:
parent
5e0aaa45b5
commit
2f26114110
12
resources/js/clients/payments/stripe-sepa.js
vendored
12
resources/js/clients/payments/stripe-sepa.js
vendored
@ -30,14 +30,16 @@ class ProcessSEPA {
|
|||||||
document.querySelector('#pay-now > svg').classList.remove('hidden');
|
document.querySelector('#pay-now > svg').classList.remove('hidden');
|
||||||
document.querySelector('#pay-now > span').classList.add('hidden');
|
document.querySelector('#pay-now > span').classList.add('hidden');
|
||||||
|
|
||||||
this.stripe.confirmSEPAPayment(
|
this.stripe.confirmSepaDebitPayment(
|
||||||
document.querySelector('meta[name=pi-client-secret').content,
|
document.querySelector('meta[name=pi-client-secret').content,
|
||||||
{
|
{
|
||||||
payment_method: {
|
payment_method: {
|
||||||
sofort: {
|
sepa_debit: {
|
||||||
country: document.querySelector(
|
sepa_debit: document.getElementById("sepa-iban").value,
|
||||||
'meta[name="country"]'
|
billing_details: {
|
||||||
).content,
|
name: document.getElementById("sepa-email-addres").value,
|
||||||
|
email: document.getElementById("sepa-name").value,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
return_url: document.querySelector(
|
return_url: document.querySelector(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user