How to integrate with Boleto Bancario using Node.js and TypeScript? [Adyen]

23 Views Asked by At

I need to perform an integration with Node.js and TypeScript for generating bank voucher (boletos bancários), i have two problems:

  1. When "boletobancario" is passed as the type of paymentMethod, it is not accepted and expects an Enum, but which of these Enums is the correct one for boleto bancario?

  2. As soon as i tried to make a request forcing the typing to any, it returned the following error:

{
  "status": 500,
  "errorCode": "000",
  "message": "Acquirer account 'BoletoBancarioSantander_AdyenTest' is no longer supported",
  "errorType": "internal",
  "pspReference": "XXXXXXXXX"
}

Is there no longer support for boleto bancario?

{
  "status": 500,
  "errorCode": "000",
  "message": "Acquirer account 'BoletoBancarioSantander_AdyenTest' is no longer supported",
  "errorType": "internal",
  "pspReference": "XXXXXXXXX"
}
1

There are 1 best solutions below

0
Kwok He On

When "boletobancario" is passed as the type of paymentMethod, it is not accepted and expects an Enum, but which of these Enums is the correct one for boleto bancario?

According to the Adyen documentation, it looks like the correct enum is: boletobancario, there are also 3 other mandatory parameters you'll need to specify: shopperName, billingAddress & socialSecurityNumber.

Adyen has a fully working integration-example which also supports the BoletoBancario payment method on Github. Ensure that the payment method is enabled in the Customer Area for your MerchantAccount.

As soon as i tried to make a request forcing the typing to any, it returned the following error:

Check whether you are using the correct MerchantAccount when making the API request?