npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

seerbit-svelte

v1.0.1

Published

Seerbit Svelte SDK

Downloads

3

Readme

Seerbit Svelte Package

Seerbit Svelte Package can be used to integrate the SeerBit payment gateway into your svelte application.

Requirements

Register for a merchant account on Seerbit Merchant Dashboard to get started.

  Svelte application
  Node js
  NPM

Instalation

npm install seerbit-svelte

API Documentation

https://doc.seerbit.com

Support

If you have any problems, questions or suggestions, create an issue here or send your inquiry to [email protected]

Implementation

You should already have your API keys. If not, go to dashboard.seerbitapi.com. Login -> Settings menu -> API Keys menu -> Copy your public key

Properties

| Property | Type | Required | Default | Desc | | ------------------- | ------------------ | -------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | currency | String | Optional | NGN | The currency for the transaction e.g NGN | | email | String | Required | None | The email of the user to be charged | | description | String | Optional | None | The transaction description which is optional | | fullName | String | Optional | None | The fullname of the user to be charged | | country | String | Optional | None | Transaction country which can be optional | | transRef | String | Required | None | Set a unique transaction reference for every transaction | | amount | String | Required | None | The transaction amount in kobo | | callbackUrl | String | Optional | None | This is the redirect url when transaction is successful | | publicKey | String | Required | None | Your Public key or see above step to get yours | | closeOnSuccess | bool | Optional | False | Close checkout when trasaction is successful | | closePrompt | bool | Optional | False | Close the checkout page if transaction is not initiated | | setAmountByCustomer | bool | Optional | False | Set to true if you want user to enter transaction amount | | pocketRef | String | Optional | None | This is your pocket reference for vendors with pocket | | vendorId | String | Optional | None | This is the vendorId of your business using pocket | | tokenize | bool | Optional | False | Tokenize card | | customization | CustomizationModel | Optional | CustomizationModel | CustomizationMode( borderColor: "#000000", backgroundColor: "#004C64", buttonColor: "#0084A0", paymentMethod:[PayChannel.card, PayChannel.account, PayChannel.transfer, PayChannel.momo], confetti: false , logo: "logo_url or base64") | | onSuccess | Method | Optional | None | Callback method if transaction was successful | | onCancel | Method | Optional | None | Callback method if transaction was cancelled |

Usage


 <script>
  import Seerbit from "seerbit-svelte";
</script>

	<Seerbit   
		public_key="YOUR PUBLIC KEY"
		tranref={new Date().getTime()}
		full_name="John Doe"
		amount="145.00"
		email="[email protected]"
		currency="NGN"
		country="NG"
		mobile_no=""
		productId=""
		description=""
		planId=""
		vendorId=""
		pocketReference=""
		setAmountByCustomer={false}
		tokenize={false}
		customization={{
			payment_method: ["card", "account", "transfer", "ussd", "momo"],
			confetti: true,
			logo: "",
			theme: {
			border_color:'fff',
			background_color:'fff',
			button_color:'fff',
			}
		}}
		onSuccess={(response, closeModal) => {
			console.log(response);

      setTimeout(() => closeModal(), 3000)
		}}
		close={(close) => {
			console.log(close);
		}}
		buttonText="Make Payment"
		buttonStyle={{
			style: "padding-top: 40px; padding-bottom: 40px; width: 50%; border-radius: 20px; color: #fff; background-color: red; font-size: 10px",
		}}
/>

onSuccess you will recieve a Map containing the response from the payment request.