1.3.6-alpha.0 • Published 1 year ago

@supermojo-official/client-sdk-react v1.3.6-alpha.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@supermojo-official/client-sdk-react

Supermojo allows marketplaces to accept credit card payments from customers who want to purchase non-fungible tokens (NFTs) without first signing up for a wallet and managing cryptocurrency. This SDK is meant for partners who want to embed a 'Pay with Supermojo' button for a seamless card on-ramp experience.


Prerequisites

Node v16.15.0
NPM 8.5.0
IDE (eg. Visual Studio Code)

Showcase marketplace

You can also checkout a Showcase marketplace for example usage. (https://marketplace.supermojo.xyz/)

React SDK Usage

  1. You will need to contact partners@supermojo.com to receive a ClientID

  2. Once you receive a ClientID, you can start to integrate the SDK into your marketplace frontend.

First install the SDK

npm install @supermojo-official/client-sdk-react

Then, import the package

import { SupermojoPayButton } from '@supermojo-official/client-sdk-react';

Finally render the 'Pay with Supermojo' button

<SupermojoPayButton
    contractAddress="CONTACT_ADDRESS"
    tokenId="TOKEN_ID"
    clientId="YOUR_CLIENT_ID"
    targetEnv="qa" //optional
/>
ParameterRequired?DefaultTypeDescription
clientIdYes"stringSet ClientId provided by the Supermojo team
contractAddressYes-stringPurchase Contract address, supplied by the Marketplace
tokenIdYes""stringNFT token ID, supplied by the Marketplace
targetEnvNo"stringPick between local / demo / qa / uat environments

If you need to use a vanilla-JS SDK instead, reach out to the Supermojo team partners@supermojo.com.

License

This software is released under the MIT license.

1.3.6-alpha.0

1 year ago

1.3.5

1 year ago

1.3.5-alpha.0

1 year ago

1.3.4

1 year ago

1.3.4-alpha.0

2 years ago

1.3.3-alpha.0

2 years ago

1.3.2

2 years ago

1.3.2-alpha.0

2 years ago

1.2.2-alpha.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.3.1-alpha.0

2 years ago

1.1.1-alpha.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.3.8-alpha.0

2 years ago

0.3.7-alpha.0

2 years ago

0.3.6-alpha.0

2 years ago

1.0.1-alpha.0

2 years ago

1.0.2-alpha.0

2 years ago

0.3.9-alpha.0

2 years ago

0.4.0

2 years ago

0.3.5

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.0

2 years ago

0.0.1-alpha.12

3 years ago

0.0.1-alpha.11

3 years ago

0.0.1-alpha.14

3 years ago

0.0.1-alpha.13

3 years ago

0.0.1-alpha.16

3 years ago

0.0.1-alpha.15

3 years ago

0.0.1-alpha.18

2 years ago

0.0.1-alpha.17

2 years ago

0.0.1-alpha.10

3 years ago

0.0.1-alpha.8

3 years ago

0.0.1-alpha.9

3 years ago

0.0.1-alpha.6

3 years ago

0.0.1-alpha.7

3 years ago

0.0.1-alpha.4

3 years ago

0.1.1

2 years ago

0.0.1-alpha.3

3 years ago

0.0.1-alpha.2

3 years ago

0.0.1-alpha.1

3 years ago