How to retrieve the payment method for an order? If it's a credit card, debit card, 'boleto'

Hello, I’m trying to retrieve the payment method itself, such as whether it is a credit or debit card, but so far I’ve only found the payment method such as “mercado_pago”, but none of the payment types.
I thought a solution would be to retrieve the card type by BIN located in “payment_details”, but there are several other methods that are not listed anywhere, such as “boleto” (very used in Brazil).

How to get payment method?

Anyone from Shopify to help me with this? In Discord I had no answers, by E-mail they could not help me and by Chat they replied that they did not have information about the API.

I’m trying to retrieve the payment method itself, such as whether it is a credit or debit card.
I thought a solution would be to retrieve the card type by BIN located in “payment_details”, but there are several other methods that are not listed anywhere, such as “boleto” (very used in Brazil).

When you make a sale in the store, it is automatically launched in our ERP via the webhook.
Then everything ok, but I need information that would be to identify the type of payment, if it is for example credit card, debit card, voucher, ‘boleto’ and etc.

In summary, I want to know the payment method that was used, whether it was credit card, debit card, wallet, deposit, pix (only brazil), boleto (only brazil)

1 Like