ng-vapulus-snippet
v1.0.4
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.14 by vapulus team.
Downloads
5
Readme
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.