1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Added real payment to js

This commit is contained in:
Lars Kusch 2021-10-06 15:36:14 +02:00
parent 5e0aaa45b5
commit 2f26114110

View File

@ -30,14 +30,16 @@ class ProcessSEPA {
document.querySelector('#pay-now > svg').classList.remove('hidden');
document.querySelector('#pay-now > span').classList.add('hidden');
this.stripe.confirmSEPAPayment(
this.stripe.confirmSepaDebitPayment(
document.querySelector('meta[name=pi-client-secret').content,
{
payment_method: {
sofort: {
country: document.querySelector(
'meta[name="country"]'
).content,
sepa_debit: {
sepa_debit: document.getElementById("sepa-iban").value,
billing_details: {
name: document.getElementById("sepa-email-addres").value,
email: document.getElementById("sepa-name").value,
},
},
},
return_url: document.querySelector(