{"id":28934956,"url":"https://github.com/oakify/ngx-paddle-wrapper","last_synced_at":"2026-03-10T12:34:12.060Z","repository":{"id":143897079,"uuid":"305926761","full_name":"oakify/ngx-paddle-wrapper","owner":"oakify","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-27T01:45:45.000Z","size":341,"stargazers_count":5,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-18T09:10:09.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oakify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-10-21T06:17:53.000Z","updated_at":"2022-03-16T14:43:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"56a04ec5-39c0-400d-acf4-d5a6595fc4a0","html_url":"https://github.com/oakify/ngx-paddle-wrapper","commit_stats":null,"previous_names":["boomdev/ngx-paddle-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oakify/ngx-paddle-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakify%2Fngx-paddle-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakify%2Fngx-paddle-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakify%2Fngx-paddle-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakify%2Fngx-paddle-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oakify","download_url":"https://codeload.github.com/oakify/ngx-paddle-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakify%2Fngx-paddle-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30333548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-22T19:08:55.795Z","updated_at":"2026-03-10T12:34:12.052Z","avatar_url":"https://github.com/oakify.png","language":"TypeScript","readme":"# Angular Paddle Wrapper\n\nThis is an Angular wrapper library for Paddle.js.\n\nThe author has no affiliation with Paddle.com Market Limited.\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.4.\n\n## How to use\n\nMake sure you have an active Paddle account and have read the docs on [paddle.com](https://developer.paddle.com/).\n\n#### 1a) Install with NPM\n\n```shell\n$ npm install ngx-paddle-wrapper\n```\n\n#### 1b) Or Yarn\n\n```shell\n$ yarn add ngx-paddle-wrapper\n```\n\n#### 2) Import the PaddleModule\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\nimport { PaddleModule } from 'ngx-paddle-wrapper';\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [BrowserModule, PaddleModule],\n  providers: [],\n  bootstrap: [AppComponent],\n})\nexport class AppModule {}\n```\n\n#### 3a) The easy way, using the `ngxPaddle` Directive\n\n```html\n\u003cbutton\n  ngxPaddle\n  [vendor]=\"123456\"\n  [product]=\"654321\"\n  email=\"test@test.com\"\n  (onCheckoutEvent)=\"checkEvent($event)\"\n\u003e\u003c/button\u003e\n```\n\n#### 3b) The less easy way, using the Service directly\n\nSince most of the functionality is through the service you can imlpement this yourself to customize to your needs further.\n\n```typescript\nimport { Component, AfterViewInit } from '@angular/core';\n\nimport {\n  PaddleService,\n  PaddleCheckoutOptions,\n  PaddleEventCallbackData,\n  PADDLE_EVENT_TYPE,\n} from 'ngx-paddle-wrapper';\n\nexport class ComponentThatImplementsPaddle implements AfterViewInit {\n  private paddleOptions: PaddleCheckoutOptions = {\n    product: 654321,\n    title: 'Test Title',\n    message: 'Test Message',\n    coupon: 'TEST',\n    email: 'test@test.com',\n  };\n\n  constructor(private paddleServ: PaddleService) {}\n\n  // Create and open programatically once the library is loaded.\n  ngAfterViewInit() {\n    this.paddleServ.create({\n      vendor: 123456,\n      eventCallback: this.checkEvent,\n    });\n  }\n\n  onSubscribe() {\n    this.paddleServ.open(this.paddleOptions);\n  }\n\n  checkEvent(data: PaddleEventCallbackData) {\n    // Handle Event\n    if (data.event === PADDLE_EVENT_TYPE.CheckoutComplete) {\n      console.log('User has completed checkout!');\n    } else {\n      console.log(data.event);\n    }\n  }\n}\n```\n\n#### 3c) Use Available Options (see official docs for more)\n\nFor Directive:\n| Attribute/prop | input/output | optional/required | Type |Description |\n| --------------- | ------------ | ----------------- | -------- | -------------------------- |\n| vendor | input | required | number | Your vendor id |\n| product | input | required | number | Your product id |\n| title | input | optional | string | See docs |\n| message | input | optional | string | See docs |\n| coupon | input | optional | string | See docs |\n| email | input | optional | string | See docs |\n| onCheckoutEvent | output | optional | string | See docs |\n\nFor Service: all other options\n\n#### 4) Get Price\n\n```typescript\nimport { Component, AfterViewInit } from '@angular/core';\n\nimport {\n  PaddleProductPrice,\n  PaddleService,\n  PaddleCheckoutOptions,\n  PaddleEventCallbackData,\n  PADDLE_EVENT_TYPE,\n} from 'ngx-paddle-wrapper';\n\nexport class ComponentThatImplementsPaddle implements AfterViewInit {\n  private paddleOptions: PaddleCheckoutOptions = {\n    product: 654321,\n    title: 'Test Title',\n    message: 'Test Message',\n    coupon: 'TEST',\n    email: 'test@test.com',\n  };\n  price: PaddleProductPrice;\n\n  constructor(private paddleServ: PaddleService) {}\n\n  // Create and open programatically once the library is loaded.\n  ngAfterViewInit() {\n    this.paddleServ.create({\n      vendor: 123456,\n      eventCallback: this.checkEvent,\n    });\n    // GET YOUR PRODUCTS PRICE:\n    const numberOfProductsToPrice = 2;\n    this.price = await this.paddleServ.getPrice(this.paddleOptions.product, numberOfProductsToPrice);\n    // OR (quantity defaults to 1):\n    this.price = await this.paddleServ.getPrice(this.paddleOptions.product);\n  }\n  [...]\n}\n```\n\n## How to contribute\n\nWant to contribute to this project? Awesome! There are many ways you can contribute, see below.\n\n### Opening issues\n\nOpen an issue to report bugs or to propose new features. If you have a general usage question please note that this is just a wrapper and most questions should be directed to the actual library in Stack Overflow etc.\n\n### Proposing pull requests\n\nPull requests are more than welcome. Note that if you are going to propose drastic changes or new features, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it.\n\n### Todo\n\nTests!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foakify%2Fngx-paddle-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foakify%2Fngx-paddle-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foakify%2Fngx-paddle-wrapper/lists"}