Alfred Integration Documentation
  • 🌐Welcome
    • Getting Started
    • alfred Overview
      • Authentication
      • Core Concepts & Use Cases
      • System Resource Names
      • Error & Status Codes
      • Required Documents for KYC by Country
      • Example Workflow Execution
    • Postman Collection
  • 🔌PENNY API General Integration
    • Penny API - Operations
      • Account Information + Get uuid Initial Transaction
      • KYC Lite + Get Access Token
      • KYC Full
      • Payment Method + Get Process Token
      • Add Bank or Update Bank
      • Submit Transaction
      • {URL-Customer-Webhook}
      • Approval Invoice (Pay Out Only)
    • Penny API - Reports
      • Consult Quote
      • Consult Payment Wallet
      • Consult All Invoices
      • Consult Individual Invoice by Invoice ID
      • Consult transactions by User's Wallet
  • 🖱️Stellar Blockchain Integration
    • Stellar API Integration - Operations
      • Auth (Get)
      • Auth (Post)
      • (Stellar) My Info - Get Account info & uuid Initial Transaction
      • KYC Lite + Get Access Token
      • KYC Full
      • Payment Method + Get Process Token
      • Add Bank or Update Bank
      • Submit Transaction
      • {URL-Customer-Webhook}
      • Approval Invoice (Pay Out Only)
    • Stellar API Integration - Reports
      • Consult All Invoices
      • Consult Payment Wallet
      • Consult Individual Invoice by Invoice ID
      • Consult transactions by User's Wallet
  • 🎒Educational Content
    • Step-by-Step Videos
      • Getting Started
      • API Integration
      • Pay Out Requirements by Country
        • 🇲🇽Mexico
        • 🇦🇷Argentina
        • 🇧🇷Brazil
Powered by GitBook
On this page
  1. Stellar Blockchain Integration
  2. Stellar API Integration - Operations

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

Name
Type
Description

API-Key*

String

Your API key for authentication.

API-Secret*

String

Your API secret for enhanced security.

Authorization*

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkB0cmluaWFndWlycmUiLCJzdWIiOjI5NywiaWF0IjoxNjkzMzg3NzkzfQ.8bLmcjHDI4xGqSx9rqTdvfevhTud2S6WHO8C01DRllo

Access token obtained from the KYC Lite process. Example token

Request Body

Name
Type
Description

"country"*

"USA"

ISO format

"address"*

"USA, Florida, Miami, El Doral"

"fullname"*

"Peter Cetera"

"email"*

"peter@gmail.com"

"phonenumber"*

"+1789654890"

"initial_transaction"*

"7968052d-2c60-4d18-b7d0-a850081547b8", //uid - myinfo

"countrywithdraw"*

"ARG"

ISO Format, it also can be to use to deposit.

"city"*

"Miami"

// 
{
  "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 1 year ago

🖱️