ng-vapulus-snippet
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

VapulusSnippet

This library was generated with Angular CLI version 10.0.14 by vapulus team.

Quick Start

npm i ng-vapulus-snippet

Example

.....
import { VapulusSnippetModule  } from 'node_modules/ng-vapulus-snippet'

@NgModule({
.......

imports: [
    ...
    VapulusSnippetModule //import here
]
.......
})
export class AppModule { }

//in your component


....
<vapulus-snippet id="ID"
                 //Your script id.
                 vapulusId="VAPULUS_ID"
                 //Your website id.
                 amount="AMOUNT"
                 //Your amount.
                 onAccept="SUCCESS_REDIRECT_URL"
                 //Success redirect url when process successed
                 onFail="FAIL_REDIRECT_URL/">
                 //Fail redirect url when payment fail
</vapulus-snippet>
.....

//in global styles 

@import "ng-vapulus-snippet/assets/theming.scss";
For local development

In the browser address bar replace localhost with http://127.0.0.1
Example http://127.0.0.1:4200 // or your specified port

Build

Run ng build ng-vapulus-snippet to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ng-vapulus-snippet, go to the dist folder cd dist/ng-vapulus-snippet and run npm publish.

Running unit tests

Run ng test ng-vapulus-snippet to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Readme

Keywords

none

Package Sidebar

Install

npm i ng-vapulus-snippet

Weekly Downloads

3

Version

1.0.4

License

none

Unpacked Size

24.3 kB

Total Files

18

Last publish

Collaborators

  • vapulusdev