Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Gun | 17,207 | 246 | 123 | 4 days ago | 235 | August 09, 2022 | 293 | other | JavaScript | |
An open source cybersecurity protocol for syncing decentralized graph data. | ||||||||||
Monero | 7,905 | a day ago | 581 | other | C++ | |||||
Monero: the secure, private, untraceable cryptocurrency | ||||||||||
Lnd | 6,952 | 14 | 80 | 20 hours ago | 39 | November 24, 2021 | 643 | mit | Go | |
Lightning Network Daemon ⚡️ | ||||||||||
Tendermint | 5,499 | 238 | 1,264 | 20 days ago | 717 | September 08, 2022 | 385 | apache-2.0 | Go | |
⟁ Tendermint Core (BFT Consensus) in Go | ||||||||||
Rippled | 4,318 | 9 hours ago | 363 | isc | C++ | |||||
Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++ | ||||||||||
Cryptolist | 3,964 | 2 months ago | 100 | |||||||
Curated collection of blockchain & cryptocurrency resources. | ||||||||||
Awesome Blockchains | 3,619 | 4 months ago | cc0-1.0 | Ruby | ||||||
A collection about awesome blockchains - open distributed public databases w/ crypto hashes incl. git ;-). Blockchains are the new tulips :tulip::tulip::tulip:. Distributed is the new centralized. | ||||||||||
Awesome Blockchain | 2,767 | 2 months ago | 4 | mit | Go | |||||
⚡️Curated list of resources for the development and applications of blockchain. | ||||||||||
Snarkos | 2,532 | 27 | 10 hours ago | 6 | August 27, 2020 | 68 | apache-2.0 | Rust | ||
A Decentralized Operating System for ZK Applications | ||||||||||
Wallet Core | 2,280 | 3 | 9 hours ago | 59 | September 20, 2022 | 24 | mit | C++ | ||
Cross-platform, cross-blockchain wallet library. |
The package allows you accept payment using Lazerpay, install, add keys and use. No stress :)
yarn add lazerpay-react-native @react-native-clipboard/clipboard
This version requires @react-native-clipboard/clipboard
to work
for iOS: cd iOS && pod install && cd ..
for expo applications run;
expo install lazerpay-react-native
Also install react-native-webview
because it's a dependency for this package. Here's a link to their docs.
yarn add react-native-webview
and that's it, you're all good to go!
import { Lazerpay } from 'lazerpay-react-native';
const Pay = () => {
const [openSDK, setopenSDK] = useState(false);
const metadata = {
'product name': 'Burger and Pepsi',
'Product Owner': 'Jeremiah Daniel',
};
return (
<View>
<Lazerpay
{...{
publicKey: 'PUBLIC_KEY',
customerName: 'CUSTOMERS FULL NAME',
customerEmail: 'CUSTOMER EMAIL',
currency: 'CURRENCY', // USD, NGN, AED, GBP, EUR
amount: '10', // amount as a number or string
reference: '9192nsjisoi',
acceptPartialPayment: true,
metadata, // metadata (optional) is an object of information you wish to pass
onSuccess: (response) => {
// handle response here
},
onClose: () => setopenSDK(false),
onError: (response) => {
// handle responsne here
},
openSDK,
}}
/>
<TouchableOpacity onPress={() => setopenSDK(true)}>
<Text> Initiate Payment</Text>
</TouchableOpacity>
</View>
);
};
reference
has to be updated after any successful partial payment to enable re-initialization.
publicKey
string: Required Your public key can be found on your dashboard settings.
customerName
string: Required The name of the customer trying to make payments
customerEmail
string: Required The email of the customer trying to make payments
currency
string: Required The name of the fiat currency the merchant accepts
amount
number | string: Required
The amount you want to charge the user in currency
metadata
object : Optional This contains any additional information you want to pass with this transaction
reference
string : Optional a unique string used to identifier the user
acceptPartialPayment
boolean : Optional This boolean is used to enforce complete payments
businessLogo
string: Required The logo of your business as url in string
onSuccess
(response) => { Void }: Required This is called when a transaction is successfully. It returns a response.
onError
(response) => { Void }: Required This is called when a transaction fails. It returns a response.
onClose
() => { Void }: Required This is called when a user clicks on the close button.
The Transaction JSON returned for successful events
{
"data": {
"acceptPartialPayment": false,
"actualAmount": 2,
"amountPaid": 2,
"amountPaidFiat": 1.9988,
"amountReceived": 2.02,
"amountReceivedFiat": 2.018788,
"blockNumber": 16348693,
"blockchain": "Binance Smart Chain",
"coin": "BUSD",
"currency": "USD",
"customer": {
"customerEmail": "[email protected]",
"customerName": "Njoku Emmanuel",
"customerPhone": null,
"id": "b847dbbd-e5a4-4afc-ba26-b292707dc391",
"network": "mainnet"
},
"feeInCrypto": 0.02,
"fiatAmount": 2,
"hash": "0x1df0c16f2ee61136c682e92b13ecc38be0f62c100bb9941c92cdac1dc9ab5155",
"id": "221a0296-16e6-47dd-b9de-b16dc1270e1a",
"network": "mainnet",
"recipientAddress": "0xc5Ea2AD69FeA1442B721E76e39384E3BB9B16694",
"reference": "3rYZeRbmIe",
"senderAddress": "0x0B4d358D349809037003F96A3593ff9015E89efA",
"status": "confirmed",
"type": "received"
},
"event": "successful"
}
openSDK
boolean: Required
This is a prop to display/hide the sdk
See the contributing guide to learn how to contribute to the repository and the development workflow.
If you're having trouble with Lazerpay React Native SDK or your integration, please reach out to us at [email protected] or come chat with us on Slack. We're more than happy to help you out.
MIT