PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | assets/js/payment.js +7 -2 2.1.12.4.0 View file →
@@ -132,9 +132,13 @@
132 132 data: {
133 133 action: 'easy_invoice_process_payment',
134 134 invoice_id: invoiceId,
135 135 payment_method: 'stripe',
136 - payment_nonce: easy_invoice_vars.nonce
136 + payment_nonce: easy_invoice_vars.nonce,
137 + // Per-invoice access token from the emailed link (?ik=...).
138 + // The server authorises the payment on it — see
139 + // InvoiceController::canSubmitPaymentForInvoice().
140 + access_token: easy_invoice_vars.access_token || ''
137 141 },
138 142 success: (response) => {
139 143 if (response.success && response.data.client_secret) {
140 144 this.stripeClientSecret = response.data.client_secret;
@@ -299,9 +303,10 @@
299 303 data: {
300 304 action: 'easy_invoice_process_payment',
301 305 invoice_id: invoiceId,
302 306 payment_method: this.selectedGateway,
303 - payment_nonce: easy_invoice_vars.nonce
307 + payment_nonce: easy_invoice_vars.nonce,
308 + access_token: easy_invoice_vars.access_token || ''
304 309 },
305 310 success: (response) => {
306 311 if (response.success) {
307 312 this.handlePaymentSuccess(response.data);