0.0.16 • Published 4 years ago

crypttp-angular v0.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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)
0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago