Intrapay P2P Payment Automation
  • Introduction to P2P Payment Automation
  • Getting Started for Partner
    • Partner Onboarding Endpoints
    • Regenerate Partners Pub/Priv Keys
  • Getting Started for Merchant
  • Integration
    • Payment Automation- Order Management
      • Mobile Money Providers
      • Digital Signature
      • Create Order - Using Payment Page
      • Create Order-Without Payment Pages or in Nigeria
      • Fetch Order
    • Order Management (Async)
      • Mobile Money Providers
      • Digital Signature
      • Create Order - Using Payment Pages
      • Create Order-Without Payment Pages or in Nigeria
      • fetch order
    • Notification- Callback URL
      • Partner Merchant Payment Notification CallBackURL
  • Payout & Account Verification
    • Account Verification
    • Payout
    • Payout Status
    • Banks & Bank Codes
Powered by GitBook
On this page

Was this helpful?

  1. Integration
  2. Order Management (Async)

Digital Signature

This endpoint is used to sign the request body. and generate the digital signature.

POST https://exchanger-api.fuspay.finance/api/v1/no-auth/PartnerP2P/SignRequestSha512/

The object is signed without including the signature field.

Headers

Name
Type
Description

Content-Type*

String

application/json

Request Body

Name
Type
Description

partner_order_id*

String

the order id on partners end

amount_to_collect*

String

the amount to be collected

timestamp*

String

the time the order was created

order_expiration*

String

the time the order would expire

currency*

String

the currency of collection eg GHS, NGN

partner_callback_url*

String

the url where payment confirmation would be posted

partner_redirect_url*

String

partners site where users would be redirected after successful payment

secret*

String

merchant secret and partner secret concatenated

Sample code

const request = require('request');


const options = {
  method: 'POST',
  url: 'https://exchanger-api.fuspay.finance/api/v1/no-auth/PartnerP2P/SignRequestSha512',
  headers: {'Content-Type': 'application/json'},
  body: {
    partner_order_id: 'FUSPAY-00400-001-091-008',
    amount_to_collect: '3',
    timestamp: 1693285902419,
    order_expiration: 1693285902419,
    currency: 'GHS',
    partner_callback_url: 'https://webhook.site/xxxxxxxx',
    partner_redirect_url: 'https://google.com',
    secret: '4LJDHGA-SJTECNA-XXXX-XXXXsk_partner_ph25sjy-qtfeoxy-rqbvzyq-z-xx'
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
PreviousMobile Money ProvidersNextCreate Order - Using Payment Pages

Last updated 1 year ago

Was this helpful?