Overview
User management
- Users
- User regulatory status
- User e-money
User verification
- User data format
- KYC documents
- UBO declarations
Wallets
- User wallets
- Client wallets
Cards
- Card registrations
- Cards
- Metadata
- Card validations
Card pay-ins
- Direct card pay-ins
- Recurring card pay-ins
- Preauthorizations
- Deposit preauthorizations
- Web card pay-ins
Banking pay-ins
- Bank wires
- Virtual IBAN
- Direct debits
- Web direct debits
APM pay-ins
- Apple Pay
- Bancontact
- BLIK
- Giropay
- Google Pay
- iDEAL
- Klarna
- MB WAY
- Multibanco
- Payconiq
- PayPal
- Satispay
- Swish
- TWINT
Transfers
- Transfers
Refunds
- Refunds
Disputes
- Disputes
- Dispute documents
- Repudiations
- Dispute settlement
Payouts
- Bank accounts
- Payouts
FX conversions
- Conversion rates
- Quotes
- Conversions
Transactions
- Transactions
Helpers
- API responses
- Country authorizations
- Webhooks
- Events
- Reports
Platform account
- Client
- Dashboard permissions
Look up metadata for a payment method
const mangopayInstance = require('mangopay2-nodejs-sdk');
const mangopay = new mangopayInstance({
clientId: "your-client-id",
clientApiKey: "your-api-key",
})
let paymentMethod = {
Type: 'BIN',
Bin: '540006'
}
const getMetadata = async (paymentMethod) => {
return await mangopay.PayIns.getPaymentMethodMetadata(paymentMethod)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getMetadata(paymentMethod)
{
"Type": "BIN",
"Bin": "540006",
"IssuerCountryCode": "US",
"IssuingBank": "FIRST NATIONAL BANK OF OMAHA",
"BinData": [
{
"CardType": "CREDIT",
"CommercialIndicator": "PERSONAL",
"Subtype": "MIXED PRODUCT",
"Brand": "MASTERCARD"
}
]
}
Body parameters
Allowed values: BIN
, GOOGLE_PAY
The type of metadata.
Format: 6 or 8 digits
Required if the Type
is BIN
.
The bank identification number (BIN).
Required if the Type
is GOOGLE_PAY
.
The tokenized payment data provided by the third-party payment method.
Responses
The type of metadata.
Format: 6 or 8 digits
The bank identification number (BIN).
Format: Two-letter country code (ISO 3166-1 alpha-2 format)
The country where the card was issued.
The name of the card issuer.
object
Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned.
Returned values: CREDIT
, DEBIT
, CHARGE CARD
The type of the card.
Returned values: PERSONAL
, COMMERCIAL
Whether the card is held in a personal or commercial capacity.
The subtype of the card product. Examples include: CLASSIC
, GOLD
, PLATINUM
, PREPAID
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The card brand. Examples include: AMERICAN EXPRESS
, DISCOVER
, JCB
, MASTERCARD
, VISA
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The type of metadata.
Format: 6 or 8 digits
The bank identification number (BIN).
Format: Two-letter country code (ISO 3166-1 alpha-2 format)
The country where the card was issued.
The name of the card issuer.
object
Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned.
Returned values: CREDIT
, DEBIT
, CHARGE CARD
The type of the card.
Returned values: PERSONAL
, COMMERCIAL
Whether the card is held in a personal or commercial capacity.
The subtype of the card product. Examples include: CLASSIC
, GOLD
, PLATINUM
, PREPAID
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The card brand. Examples include: AMERICAN EXPRESS
, DISCOVER
, JCB
, MASTERCARD
, VISA
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The type of metadata.
Format: 6 or 8 digits
The bank identification number (BIN).
Format: Two-letter country code (ISO 3166-1 alpha-2 format)
The country where the card was issued.
The name of the card issuer.
object
Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned.
Returned values: CREDIT
, DEBIT
, CHARGE CARD
The type of the card.
Returned values: PERSONAL
, COMMERCIAL
Whether the card is held in a personal or commercial capacity.
The subtype of the card product. Examples include: CLASSIC
, GOLD
, PLATINUM
, PREPAID
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The card brand. Examples include: AMERICAN EXPRESS
, DISCOVER
, JCB
, MASTERCARD
, VISA
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The type of metadata.
Returned values: PAN_ONLY
, CRYPTOGRAM_3DS
In the case of Google Pay, the format of the Token
.
PAN_ONLY
– The card is registered in the Google account and requires 3DS authentication.CRYPTOGRAM_3DS
– The card is enrolled in the customer’s Google Wallet and authentication is handled by the Android device.
Format: 6 or 8 digits
The bank identification number (BIN).
Format: Two-letter country code (ISO 3166-1 alpha-2 format)
The country where the card was issued.
The name of the card issuer.
object
Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned.
Returned values: CREDIT
, DEBIT
, CHARGE CARD
The type of the card.
Returned values: PERSONAL
, COMMERCIAL
Whether the card is held in a personal or commercial capacity.
The subtype of the card product. Examples include: CLASSIC
, GOLD
, PLATINUM
, PREPAID
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
The card brand. Examples include: AMERICAN EXPRESS
, DISCOVER
, JCB
, MASTERCARD
, VISA
, etc.
Note: The possible returned values are numerous and liable to evolve over time.
{
"Type": "BIN",
"Bin": "540006",
"IssuerCountryCode": "US",
"IssuingBank": "FIRST NATIONAL BANK OF OMAHA",
"BinData": [
{
"CardType": "CREDIT",
"CommercialIndicator": "PERSONAL",
"Subtype": "MIXED PRODUCT",
"Brand": "MASTERCARD"
}
]
}
const mangopayInstance = require('mangopay2-nodejs-sdk');
const mangopay = new mangopayInstance({
clientId: "your-client-id",
clientApiKey: "your-api-key",
})
let paymentMethod = {
Type: 'BIN',
Bin: '540006'
}
const getMetadata = async (paymentMethod) => {
return await mangopay.PayIns.getPaymentMethodMetadata(paymentMethod)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getMetadata(paymentMethod)
Was this page helpful?
const mangopayInstance = require('mangopay2-nodejs-sdk');
const mangopay = new mangopayInstance({
clientId: "your-client-id",
clientApiKey: "your-api-key",
})
let paymentMethod = {
Type: 'BIN',
Bin: '540006'
}
const getMetadata = async (paymentMethod) => {
return await mangopay.PayIns.getPaymentMethodMetadata(paymentMethod)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getMetadata(paymentMethod)
{
"Type": "BIN",
"Bin": "540006",
"IssuerCountryCode": "US",
"IssuingBank": "FIRST NATIONAL BANK OF OMAHA",
"BinData": [
{
"CardType": "CREDIT",
"CommercialIndicator": "PERSONAL",
"Subtype": "MIXED PRODUCT",
"Brand": "MASTERCARD"
}
]
}