Socket
Book a DemoInstallSign in
Socket

@satispay/web-button-factory

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@satispay/web-button-factory

This module is deprecated and it is no longer maintained. For migrating to a supported integration please check the [Satispay Business API documentation](https://developers.satispay.com/).

2.0.0
latest
npmnpm
Version published
Weekly downloads
14
1300%
Maintainers
2
Weekly downloads
 
Created
Source

WARNING

This module is deprecated and it is no longer maintained.
For migrating to a supported integration please check the Satispay Business API documentation.

This library is made for React, Angular and other frameworks.

Example

Create an iframe on document.body

import { IFrame } from '@satispay/web-button-factory'

const iframe = new IFrame({
  datakey: 'dk_...',
  userCallback: 'https://yourwebsite.ext/userCallback',
  amount: 100,
  description: 'Testing Charge',
})

Now with show() you can display the iframe

iframe.show()

IFrame

Methods

NameDescriptionArguments
on(event, function)Subscribe a function to an eventEvent name, Function
off(event)Unsubscribe eventEvent name
showShow the IFrame
hideHide the IFrame

Events

NameEmit onArguments
closeClose modal
loadIFrame is loaded
completed(chargeId)Charge success or failCharge ID

Properties

The IFrame constructor accept the following properties

NameTypeDescriptionMandatoryDefaultValues
onlineServicestringOnline service urlNohttps://online.satispay.com
datakeystringShop datakeyYes
userCallbackstringUser callback urlYes
amountnumberAmount in centsYes
descriptionstringDescription of chargeYes
orderIdstringID of order, passed to user callbackNo
phonenumberstringPhone number of userNo
currencystringCurrency, currently only EUR is availableNoeureur
localestringLanguageNoautoit, en
drawonstringWhere to draw the iframeNodocument.body

These properties are editable before show()

  • userCallback
  • amount
  • description
  • orderId
  • phonenumber
  • currency
  • locale

Button

The button function return an image url

NameTypeDescriptionMandatoryDefaultValues
onlineServicestringOnline service urlNohttps://online.satispay.com
localestringLanguageYesit, en
typestringType of buttonNopaypay, donate
colorstringColor of buttonNoredred, white

FAQs

Package last updated on 26 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.