stripe
This commit is contained in:
@@ -86,6 +86,18 @@ const API = {
|
||||
}).then(r => r.json())
|
||||
},
|
||||
|
||||
// NEU: Stripe API
|
||||
stripe: {
|
||||
createPaymentLink: (invoiceId) => fetch(`/api/invoices/${invoiceId}/create-payment-link`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
}).then(r => r.json()),
|
||||
checkPayment: (invoiceId) => fetch(`/api/invoices/${invoiceId}/check-payment`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
}).then(r => r.json())
|
||||
},
|
||||
|
||||
// QBO API
|
||||
qbo: {
|
||||
getStatus: () => fetch('/api/qbo/status').then(r => r.json()),
|
||||
|
||||
Reference in New Issue
Block a user