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

# Universal Payment SDK

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

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.net/honeycoin/apis/honeycoin-v3-api-official.md) · [All operations](https://skmtc.net/honeycoin/apis/honeycoin-v3-api-official/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/honeycoin/honeycoin-v3-api-official/revisions/f3fef13ed253/schema)
