1.0.21 • Published 1 year ago

my-react-package-jorge v1.0.21

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Neptune Payment Element

The Neptune Payment Element is a custom element that allows you to accept payments in your web application. It is a wrapper around the Neptune Payment API.

Custom payment flow

Learn how to embed the Neptune Payment Element in your web application and customize the payment flow.

Step 1: Create a Neptune account

If you don't have a Neptune account, sign up for one.

Step 2: Create a Merchant

If you don't have a Merchant, create one in your Neptune account.

Step 3: Add Neptune Payment Element to your web application

Add Neptune Payment Element to your web application by including the Neptune Payment Element script in your HTML.

<script src="https://neptunepayments.com/payment-element.js"></script>

or by using a package manager:

npm install neptune-payment-element
yarn add neptune-payment-element

Step 4: Add Neptune Payment Element to your react application

Add Neptune Payment Element to your react application by importing the Neptune Payment Element component.

import NeptunePaymentElement from 'neptune-payment-element';

Step 7: Start using Neptune Payment Element

Start using Neptune Payment Element by adding the NeptunePaymentElement component to your react application.

const merchantPubKey = <<merchantPubKey>>
const [tokenizer, setTokenizer] = useState<Tokenizer>();

<NeptunePaymentElement merchantPubKey={merchantPubKey} setTokenizer={setTokenizer}/>

Step 8: Customize Neptune Payment Element

Customize Neptune Payment Element by passing the following props to the NeptunePaymentElement component.

PropTypeDescription
merchantPubKeystringThe public api key of the Merchant.
setTokenizerfunctionThe setter for the tokenizer state.
isFluidPayDevModebooleanDefines whether to use sandbox or not.
onSuccessfunctionThe callback function that is called when the payment is successful.
onErrorfunctionThe callback function that is called when the payment is unsuccessful.
1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago