Socket
Book a DemoInstallSign in
Socket

crypttp-angular

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypttp-angular

## Environment ``` node -v // your version > 10.9 ```

0.0.16
latest
npmnpm
Version published
Maintainers
1
Created
Source

Crypttp-angular

Environment

node -v
// your version > 10.9

Installation

1. Download dependency in project directory

npm i -s crypttp-angular

2.

Signup at dashboard https://crypttp.com/dashboard

And copy merchant id

Usage

1. Add crypttp to imports of root app.module

/*
 here your imports goes
*/
import {Crypttp} from 'crypttp-angular';

@NgModule({
    declarations: [ /* your components */ ],
    imports: [
        /* other angular modules */
        Crypttp,
    ]
})
export class AppModule {
}

2. Add component to your cart

<crypttp type=''
    merchant_id=''
    country_currency=''
    currency=''
    amount=''
    to=''
    payload=''
    memo=''
    onsuccess=''
    onerror=''></crypttp>

3. Pass params

TypeNameOptional \ RequiredDiscription
stringtyperequired0 - if you are CRYPTO ACUQRING, track transactions yourself, you keep wallet address of merchant. 1 - if you are MERCHANT and want charge user. We will create wallet address for you to accept cryptos
stringmerchant_idrequiredid which you can find at crypttp.com/dashboard
stringcountry_currencyrequiredcurrency of your client. Can't vary for each client.
stringcurrencyoptionalpass it only if you know which crypto you want to charge from client
stringamountrequiredamount to charge in native currency numeration
objecttooptionalpass it IF YOU KNOW MERCHANTS WALLET - object that should contain wallets of merchant for each currency {ETH:"0x1234"}
stringpayloadoptionalany extra data that you want to send with cryptocurrency transaction
stringmemooptionala special tag for specific blockchains
stringonsuccessoptionalurl where to redirect user after checkout complete (can be deeplink)
stringonerroroptionalurl where to redirect user if checkout failed (can be deeplink)

FAQs

Package last updated on 22 Feb 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.