react-version #1
@ -55,7 +55,6 @@ const PaymentForm = ({ cost, invoice }) => {
|
||||
.then((result) => {
|
||||
if (!result.error) {
|
||||
|
||||
console.log(invoice);
|
||||
invoice.token = result.token.id;
|
||||
invoice.description = `Payement de ${cost} à GM`;
|
||||
invoice.amountInCents = cost;
|
||||
@ -76,7 +75,6 @@ const PaymentForm = ({ cost, invoice }) => {
|
||||
},
|
||||
body: json
|
||||
}).then((response) => {
|
||||
console.log(response);
|
||||
if (response.ok) {
|
||||
mySwal.fire({
|
||||
title: 'Commande envoyée avec succès!',
|
||||
|
Loading…
Reference in New Issue
Block a user