Payment Method + Get Process Token

Get Token & payment method of the user


Description:

This endpoint facilitates the retrieval of a token and associated payment methods. It primarily aids in obtaining user-specific payment details and serves as an essential interface between the system and third-party payment processors.

Mode:

POST

Node:

/third-party-service/payment-method

Sample Access Token:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkB0cmluaWFndWlycmUiLCJzdWIiOjI5NywiaWF0IjoxNjkzMzg3NzkzfQ.8bLmcjHDI4xGqSx9rqTdvfevhTud2S6WHO8C01DRllo

POST /third-party-service/payment-method

Get Token & payment method of the user

Headers

Request Body

// 
{
  "statusCode": 202,
  "message": "thrid party login and payment methods",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkBndWlsbGVybW8uc2FuY2hleiIsInN1YiI6OSwiaWF0IjoxNjg4NTAzMzg4fQ.oyH_3PN6URj7r-HBEPuipVhatOsjeF0DIc5T_O3waFs",
    "kyc": false,
    "userBanks": [
      {
        "id": 6,
        "bankName": "BANCO",
        "bankNumber": "24523458788543",
        "bankAccountOwner": "Peter Cetera",
        "icon": null,
        "countryCode": "ARG",
        "DNI": "56",
      }
    ],
    "paymentsMethods": {
      "ATM": [
        {
          "id": 4,
          "name": "ATM",
          "img": "https://alfred-pay-images.s3.amazonaws.com/profile/6573a827-0271-4217-98b2-ksdhkhgdsifuy.png"
        }
      ],
      "BANK": [
        {
          "id": 4,
          "name": "Cro",
          "img": "https://alfred-pay-images.s3.amazonaws.com/profile/6573a827-0271-4217-9lsdfkhdksjg0e6d62.png",
           ages.s3.amazonaws.com/profile/1iudfh7-7813-47e2-9e35-791b4a92994d.png",
         “ to_deposit” :  [{
                                  “account”: “21346739652098762”,
                                  “owner”: “SMC”,
                                  “Id”: “J12445689”,
                                  “bank”:”Banco”},
                                  {
                                  “account”: “76549626620985291”,
                                  “owner”: “SMC”,
                                  “Id”: “J12445689”,
                                  “bank”:”Banco”}]
        }
      ],
      "Retail": []
    },
    "exhangeFactor": {
      "id": "49037ded-7fbd-4dc5-9b49-aeedcaf8d82b",
      "to": {
        "from_currency": "BTC",
        "to_currency": "ARS",
        "rate": "7.19"
      },
      "from": {
        "from_currency": "ARS",
        "to_currency": "BTC",
        "rate": 0.139
      }
    }
  }
}

Considerations:

Three methods of payment: Bank, Retail, ATM

If any method is left blank in the endpoint response this means that payment method is not available.

The Access token is obtained from KYC Lite URL (UUID), you must use that token in order to complete your requested transaction.

If the data, Bank of the user is null, then you must execute /third-party-service/update-bank.

If “ to_deposit” shows bank data this means the institution has the ability to perform "Pay-In" ramp transactions.

Last updated