Skip to main content

Easily Integrate
Peach Payments's API using Konfig's TypeScript SDK

Need a TypeScript SDK for Peach Payments's API?

Growing API Companies trust Konfig's SDKs to onboard developers to their API.

SnapTradeHumanloopSplititLeapGroundx

First, instantiate the SDK

It only takes a few lines of code.

index.ts

import { PeachPayments } from 'peach-payments-typescript-sdk';
const peachPayments = new PeachPayments({
// Merchant-level authentication (https://developer.peachpayments.com/docs/checkout-js-authentication).
bearerAuth: "BEARER_AUTH"
})

Then, send your first request

We made it really easy.

index.ts

// Initiate redirect-based Checkout
const initiateRedirectCheckoutResponse = peachPayments.checkoutGeneration.initiateRedirectCheckout({
referer: "https://mydemostore.com"
authentication.entityId: "8ac7a4ca68c22c4d0168c2caab2e0025"
signature: "a668342244a9c77b08a2f9090d033d6e2610b431a5c0ca975f32035ed06164f4"
merchantTransactionId: "OrderNo453432"
amount: 1010.22
paymentType: "DB"
currency: "ZAR"
nonce: "UNQ00012345678"
shopperResultUrl: "https://mydemostore.com/OrderNo453432"
defaultPaymentMethod: "CARD"
forceDefaultMethod: "false"
merchantInvoiceId: "INV-0001"
cancelUrl: "https://mydemostore.com/OrderNo453432/cancelled"
notificationUrl: "https://mydemostore.com/OrderNo453432/webhook"
customParameters[name]: "name: Name1 value: Value1"
customer.merchantCustomerId: 971020
customer.givenName: "John"
customer.surname: "Smith"
customer.mobile: 27123456789
customer.email: "johnsmith@mail.com"
customer.status: "EXISTING"
customer.birthDate: "1970-02-17"
customer.ip: "192.168.1.1"
customer.phone: 27123456789
customer.idNumber: 9001010000084
billing.street1: "1 Example Road"
billing.street2: "LocalityA"
billing.city: "Cape Town"
billing.company: "CompanyA"
billing.country: "ZA"
billing.state: "Western Cape"
billing.postcode: 1234
shipping.street1: "1 Example Road"
shipping.street2: "LocalityA"
shipping.city: "Cape Town"
shipping.company: "CompanyA"
shipping.postcode: 1234
shipping.country: "ZA"
shipping.state: "Western Cape"
cart.tax: "15.00"
cart.shippingAmount: "12.25"
cart.discount: "02.25"
createRegistration: "false"
originator: "Webstore"
})

Enjoy a buttery smooth developer experience with 21 SDK methods

How Konfig Works

Konfig collects APIs and automatically generates SDKs so you can focus on building your application.

openapi-examples

Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository

We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

openapi-examples-to-konfig

Generates AI-Augmented SDKs from openapi-examples

Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

konfig-to-package-managers

Publishes to standard package managers

We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

Peach Payments

About Peach Payments

Peach Payments enables Simple, Seamless and Secure transactions for business and consumers in Africa. We provide our customers with all the tools and solutions they need to sell across any digital channel while ensuring a safe experience for them and their customers. Customer service is a core part of our DNA and it is our mission to ensure that our customers are happy as they grow from their first transaction past their millionth Peach Payments currently powers businesses in South Africa, Kenya and Mauritius.

Keywords

payments
africa
financial_technology
fintech
e_commerce

Start integrating Peach Payments's API with Konfig