Monicredit Api
  • 😊Hello
  • How to use this documentation
  • Demo vs Live Environment
  • Authentication
    • Login
  • OnBoarding
    • OnBoard New Merchant
  • Collection
    • Getting Started
    • Accept Payment (Inline)
    • Accept Payment (Standard)
    • Verify Payment
    • Virtual Accounts
    • Revenue Head
    • Settlement Bank
  • Transactions
    • Get Transactions
    • Get Initiated Transaction Info
    • Verify Transaction
    • Verify Payment
    • Transaction Virtual Account
    • Settlement Transactions
    • Initiate Transaction
  • Commercial
    • Calculate Commercials
  • Settlement Bank
    • Create Settlement Bank
    • List Settlement Banks
    • Update Settlement Bank
  • Revenue Heads
    • Create Revenue Head
    • Update Revenue Head
    • List Revenue Heads
    • Get Single Revenue Head
    • Search Revenue Head
    • Delete Revenue Head
  • Reports
    • Settlement Bank Report
    • Revenue Head Report
    • Merchant Report
  • Settlement
    • Get Settlements
    • Get Single Settlement
  • Wallets
    • Create Wallet
    • Update Wallet
    • Get Wallet Transactions
    • Get Single Customer Wallet
    • Get Account Wallets
    • Get All Wallets
    • Create Virtual Account
  • Customer Wallet
    • Create Customer Wallet
    • Get Customer Wallets
    • Create Customer Virtual Account
    • Update Customer Wallet
  • Beneficiary
    • Add Beneficiary
    • Update Beneficiary
    • Search Beneficiary
  • Disbursement
    • Single Fund Transfer
    • Transaction Settlement
    • Bank List
    • Name Enquiry
Powered by GitBook
On this page
  1. Collection

Accept Payment (Standard)

PreviousAccept Payment (Inline)NextVerify Payment

Last updated 8 months ago

Here, you make a request to our from your server to create a checkout link. Subsequently, you direct your users to this checkout link for payment. Upon completing the payment, users are redirected back to your website at the callback URL you specified on your dashboard.

Parameters

The standard flow uses the same implementation and the same parameters as the inline flow.

Please ensure you include the paytype parameter in the request body and specify the value as standard

Due to new polices, Either bvn or nin has to be passed with the customer object payload

Sample Payload

curl -X POST \
  {{baseUrl}}/v1/payment/transactions/init-transaction \
  -H 'Content-Type: application/json' \
  -d '{
"order_id": "new1111",
"public_key": "PUB_TEST_0000000000",
"customer": {
              "first_name":"newauto",
              "last_name":"credit",
              "email":"hellfo1221@au4tocredit.ng",
              "phone":"00000000",
              "bvn":"0000000",
              "nin": "00000"
           },
"items": [
    {
        "item":"Acceptnce fee",
        "revenue_head_code": "REV0000",
        "unit_cost":10000.43, 
        "split_details": [
            {
            "sub_account_code": "SB0000",
            "fee_percentage": 60,
            "fee_flat": 0
            },
            {
            "sub_account_code": "SB000000",
            "fee_percentage": 40,
            "feeFlat": 0
            }
        ]
    }, 
    {
        "item":"School Fee",
        "revenue_head_code": "REV000000",
        "unit_cost":50000.33, 
        "split_details": [
            {
            "sub_account_code": "SB000000",
            "fee_percentage": 40,
            "feeFlat": 0
            },
            {
            "sub_account_code": "SB0000000",
            "fee_percentage": 60,
            "feeFlat": 0
            }
        ]
    }
],
"currency": "NGN",
"paytype": "standard"
}'

Success Response

{
    "status": true,
    "authorization_url": "https://demo.backend.monicredit.com/payment/checkout/ACX00000000",
    "id": "ACX00000000"
}

Error Response

{
    "status": false,
    "message": "The order id has already been taken."
}
Initialize Transaction API