---
title: "Universal Payment SDK"
method: POST
path: "/api/b2b/fiat/payment-sdk"
---

# Universal Payment SDK

`POST /api/b2b/fiat/payment-sdk`

## Request

- Base URL: `https://api-v2.honeycoin.app`
- URL: `https://api-v2.honeycoin.app/api/b2b/fiat/payment-sdk`
- Auth: API key in header `Authorization`

The Payment SDK endpoint allows you to collect payments from customers in multiple markets all through this single endpoint.

## Request body

- object
  - `amount` integer, required: The amount in the chargeCurrency
  - `chargeCurrency` string, required: The currency you want to charge the user in e.g KES
  - `walletCurrency` string, required: The wallet you want to be credited. e.g USD
  - `externalReference` string, required: A unique reference provided by the client to prevent duplicate transactions.
  - `prefillData` object: Please note that the data passed can not be edited during payment.
    - `firstName` string
    - `lastName` string
    - `email` string
  - `successRedirectUrl` string: Where to redirect the user on a successful deposit
  - `failureRedirectUrl` string: Where to redirect the user on a failed deposit
  - `cancelRedirectUrl` string: Where to redirect the user after cancelling the transaction
  - `country` string: Required when the chargeCurrency is XOF e.g BJ, SN etc
  - `method` string: Used to filter the charge method the user can use e.g momo, bank, card, opay

## Response `200`

200

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/honeycoin/apis/honeycoin-v3-api-official.md) - [All operations](https://skmtc.dev/honeycoin/apis/honeycoin-v3-api-official/llms.txt) - [OpenAPI document](https://skmtc.dev/honeycoin/apis/honeycoin-v3-api-official/revisions/fcb58b0ef441?raw)
