Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ng-stripe
Advanced tools
Readme
This library was generated with Angular CLI version 8.2.4. This is a simple stripe payment gateway libray. We have not used styles, you can change the card layout as your own. Demo
$ npm i ng-stripe
Import NgStripeModule in your module.ts
file ( app.module.ts file )
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgStripeModule } from 'ng-stripe';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
NgStripeModule
],
providers: [
],
bootstrap: [AppComponent]
})
export class AppModule { }
Add below code in your .html
file
<lib-ng-stripe apiKey="pk_test_Pj5AIAyJnj8lafRKnF1gC5wY" apiSecret="sk_test_hj06rZIyHdrs9etIqk7pSVax" totalAmount="10" currency="USD" stripeBtnText="pay" stripeBtnLoading="Loading.." orderId="25" email="user@example.com" (apiResponse)="paymentChange($event)"></lib-ng-stripe>
Add below code in your .component.ts
file
paymentChange(data) {
console.log(data); // you can receive both success and resposonse data here
}
Options | Description |
---|---|
apiKey | Stripe Publishable key |
apiSecret | Stripe Secret key |
totalAmount | Final Amount |
currency | Supported currencies View All |
stripeBtnText | Paynow Button Text, Default text is Pay Now |
stripeBtnLoading | Loading button text, Default text is Please Wait.. |
orderId | It will be passed with Stripe desription |
It will be passed with Stripe desription | |
apiResponse | All success and error data will received here |
Like my Work! Donate
FAQs
ng-stripe is a simple stripe payment gateway api.
The npm package ng-stripe receives a total of 3 weekly downloads. As such, ng-stripe popularity was classified as not popular.
We found that ng-stripe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.