@infrab4a/connect-nestjs 1.8.0-beta.6 → 1.8.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +3 -0
- package/index.esm.js +3 -0
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -324,6 +324,7 @@ class PagarmeBankSlipAPIAdapter {
|
|
|
324
324
|
return payment;
|
|
325
325
|
}
|
|
326
326
|
catch (error) {
|
|
327
|
+
console.log('Error PagarmeBankSlipAPIAdapter', JSON.stringify(error));
|
|
327
328
|
throw new connect.PaymentError('Houve uma falha ao gerar o boleto. Tente novamente', {
|
|
328
329
|
checkoutId: checkout.id,
|
|
329
330
|
userEmail: checkout.user.email,
|
|
@@ -400,6 +401,7 @@ class PagarmeCardAPIAdapter {
|
|
|
400
401
|
return payment;
|
|
401
402
|
}
|
|
402
403
|
catch (error) {
|
|
404
|
+
console.log('Error PagarmeCardAPIAdapter', JSON.stringify(error));
|
|
403
405
|
throw new connect.PaymentError('Seu pagamento com cartão não foi autorizado. Para não perder seus produtos, pague com PIX ou outro cartão de crédito', {
|
|
404
406
|
checkoutId: checkout.id,
|
|
405
407
|
userEmail: checkout.user.email,
|
|
@@ -539,6 +541,7 @@ class PagarmePixAPIAdapter {
|
|
|
539
541
|
return payment;
|
|
540
542
|
}
|
|
541
543
|
catch (error) {
|
|
544
|
+
console.log('Error PagarmePixAPIAdapter', JSON.stringify(error));
|
|
542
545
|
throw new connect.PaymentError('Houve uma falha ao processar pagamento com pix', {
|
|
543
546
|
checkoutId: checkout.id,
|
|
544
547
|
userEmail: checkout.user.email,
|
package/index.esm.js
CHANGED
|
@@ -316,6 +316,7 @@ class PagarmeBankSlipAPIAdapter {
|
|
|
316
316
|
return payment;
|
|
317
317
|
}
|
|
318
318
|
catch (error) {
|
|
319
|
+
console.log('Error PagarmeBankSlipAPIAdapter', JSON.stringify(error));
|
|
319
320
|
throw new PaymentError('Houve uma falha ao gerar o boleto. Tente novamente', {
|
|
320
321
|
checkoutId: checkout.id,
|
|
321
322
|
userEmail: checkout.user.email,
|
|
@@ -392,6 +393,7 @@ class PagarmeCardAPIAdapter {
|
|
|
392
393
|
return payment;
|
|
393
394
|
}
|
|
394
395
|
catch (error) {
|
|
396
|
+
console.log('Error PagarmeCardAPIAdapter', JSON.stringify(error));
|
|
395
397
|
throw new PaymentError('Seu pagamento com cartão não foi autorizado. Para não perder seus produtos, pague com PIX ou outro cartão de crédito', {
|
|
396
398
|
checkoutId: checkout.id,
|
|
397
399
|
userEmail: checkout.user.email,
|
|
@@ -531,6 +533,7 @@ class PagarmePixAPIAdapter {
|
|
|
531
533
|
return payment;
|
|
532
534
|
}
|
|
533
535
|
catch (error) {
|
|
536
|
+
console.log('Error PagarmePixAPIAdapter', JSON.stringify(error));
|
|
534
537
|
throw new PaymentError('Houve uma falha ao processar pagamento com pix', {
|
|
535
538
|
checkoutId: checkout.id,
|
|
536
539
|
userEmail: checkout.user.email,
|