Widget Integration Guide

Key Features

  • Seamless Integration: Easily embed the payment widget into your website or application.

  • Customizable: Tailor the widget's appearance to match your brand.

  • Secure Transactions: Juicyway prioritizes the security of your customers' financial information.

  • Multiple Payment Options: Support a variety of payment methods (e.g., cards, bank transfers).

Parameters

Request param
Description
Required

amount

The payment amount in the smallest denomination of the currency (e.g., cents for USD).

Yes

currency

A three-letter ISO 4217 currency code (e.g., USD).

Yes

description

A short description of the payment.

Yes

isLive

Set to true for real payments, false for testing in the sandbox.

Yes

appName

The name of your merchant's business or app.

No

customer

An object containing customer details like name, email, and address.

No

key

Your Juicyway API key.

Yes

metadata

An object for extra data related to this payment. The order object within it is particularly useful for order-related details.

No

order

Order details

Yes

reference

A unique identifier for the payment.

Yes

paymentMethod

paymentMethod object contains the payment method details to create payments. To present a pre-selected payment method to the user, pass the specific method details.

No

Integration Steps

  1. Include the Juicyway Library: Add the following line to the <head> section of your HTML:

HTML

  1. Create the Payment Function: Define a JavaScript function to initialize the payment widget:

JavaScript

  1. Trigger the Payment: Create a button or link that calls the openWidget() function:

HTML

Last updated