paypal-button-subscribe
v1.0.0
Published
Esta sección indica como con poca configuración puedes agregar tus suscripciones en la aplicación de angular.
Downloads
10
Maintainers
Readme
Paypal Button Subscribe for Angular
Esta sección indica como con poca configuración puedes agregar tus suscripciones en la aplicación de angular.
Requirements:
| Name | Version | |--|--| | NodeJS | ^14.20.x | | Angular | ^13.0.x |
Installation:
npm install paypal-button-subscribe
Configuration:
import PaypalBtnSubscribeModule
into the AppModule
import { PaypalBtnSubscribeModule } from 'paypal-button-subscribe';
Then configure the data that is required
@NgModule({
declarations: [
...
],
imports: [
...
PaypalBtnSubscribeModule.forRoot({
clientID: '<A_Client_ID_Valid>'
})
],
providers: [
...
],
bootstrap: [
...
]
})
Available Options:
Usage:
Import the PaypalBtnSubscribeService
service into your component
import { PaypalBtnSubscribeService } from 'paypal-button-subscribe'
Add dependency injection in your component's constructor
constructor(private paypalBtnSubscribeService: PaypalBtnSubscribeService) { }
Then invoke the functions you need.
ngOnInit(): void {
this.paypalBtnSubscribeService.createButtonSubscription({
container_id: '<MY_CUSTOM_CONTAINER_ID>',
plan_id: '<A_VALID_PLAN_ID>'
});
this.paypalBtnSubscribeService.onResponse.subscribe((resp: any) => {
...
});
}
Options available for buttons
Support:
If you need custom development, please do not hesitate to contact us.
Author:
Donations
Hello! I hope you're having a great day. Our project is progressing, and we're looking for support to keep growing. If you'd like to contribute and help us continue making a positive impact, we invite you to make a donation. Every contribution, big or small, makes a significant difference.