1.0.4 • Published 4 years ago

ng-vapulus-snippet v1.0.4

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

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.

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago