{"id":21748645,"url":"https://github.com/adnane-ka/omnipay-paddle","last_synced_at":"2026-03-07T16:33:47.351Z","repository":{"id":255706648,"uuid":"853412693","full_name":"adnane-ka/omnipay-paddle","owner":"adnane-ka","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-07T23:36:39.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T03:31:52.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/adnane-ka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","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":"2024-09-06T15:52:51.000Z","updated_at":"2025-04-12T01:10:22.000Z","dependencies_parsed_at":"2024-09-06T20:20:31.555Z","dependency_job_id":"4184380d-5592-45a0-b25c-6fe8106f32f3","html_url":"https://github.com/adnane-ka/omnipay-paddle","commit_stats":null,"previous_names":["adnane-ka/omnipay-paddle"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adnane-ka/omnipay-paddle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-paddle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-paddle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-paddle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-paddle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adnane-ka","download_url":"https://codeload.github.com/adnane-ka/omnipay-paddle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnane-ka%2Fomnipay-paddle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30221511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"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":"2024-11-26T08:14:33.365Z","updated_at":"2026-03-07T16:33:47.330Z","avatar_url":"https://github.com/adnane-ka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Omnipay: paddle\n\n**Paddle payments gateway for Omnipay payment processing library**\n\n[![Build Status](https://img.shields.io/travis/com/adnane-ka/omnipay-paddle.svg?style=flat-square)](https://travis-ci.com/adnane-ka/omnipay-paddle)\n[![Latest Stable Version](https://img.shields.io/packagist/v/adnane-ka/omnipay-paddle.svg?style=flat-square)](https://packagist.org/packages/adnane-ka/omnipay-paddle)\n[![Total Downloads](https://img.shields.io/packagist/dt/adnane-ka/omnipay-paddle.svg?style=flat-square)](https://packagist.org/packages/adnane-ka/omnipay-paddle)\n\n[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment\nprocessing library for PHP 5.3+. This package implements Tap support for Omnipay.\n\n## Installation\n```shell\ncomposer require adnane-ka/omnipay-paddle\n```\n## Basic Usage\nThe following gateways are provided by this package:\n\n* Paddle\n\nThis package ineteracts with [paddle's API](https://paddle.vn/lap-trinh-cong-thanh-toan.html). \n\nFor general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)\nrepository.\n\n## Flow\n\n1. Configure gateway\n2. Create a draft transaction\n3. Display an overlay checkout form for the draft transaction\n4. Proccess Payment by gateway\n5. Redirect to proccess payment on website\n\n## Example usage\n### Configuration\n\n```php\nuse Omnipay\\Omnipay;\n\n$gateway = Omnipay::create('Paddle');\n$gateway-\u003esetApiKey('YOUR_API_KEY');\n$gateway-\u003esetTestMode(true);\n```\n\n### Creating a Purchase\n```php\n$response = $gateway-\u003epurchase([\n    'amount' =\u003e 5.00 * 100, // in cents\n    'checkoutUrl' =\u003e 'http://localhost:8000/checkout.php', // where you'll display the overlay / inline checkout\n    'returnUrl' =\u003e 'http://localhost:8000/complete.php',  // where you'll be proccessing the payment \n    'currency' =\u003e 'USD'\n])-\u003esend();\n\nif ($response-\u003eisRedirect()) {\n    // The transaction is created as a draft and you're ready to be redirected to checkout\n    $response-\u003eredirect(); \n} else {\n    // An error occured\n    echo $response-\u003egetMessage();\n}\n```\n\n### Checkout\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003ePaddle Checkout\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003cscript src=\"https://cdn.paddle.com/paddle/v2/paddle.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    Paddle.Environment.set(\"sandbox\");\n    Paddle.Initialize({ \n      token: \"test_4c116d8b4cc5cd9756de9765db9\", // Your public API key \n    });\n    Paddle.Checkout.open({\n      transactionId: \"\u003c?php echo $_GET['transactionId']; ?\u003e\", // Locate this from request \n      settings: {\n        successUrl: \"\u003c?php echo urldecode($_GET['returnUrl']); ?\u003e\" // Locate this from request\n      }\n    });\n\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Completing Purchase\nWhen users submit the checkout form after they pay using the overlay checkout, they'll be redirected to `returnUrl` where you'll be proccessing the payment:\n```php\n$response = $gateway-\u003ecompletePurchase([\n    'transactionId' =\u003e $_GET['transactionId'] // sent in request or retrieved from backend\n])-\u003esend();\n\nif($response-\u003eisSuccessful()){\n    // Payment was successful and charge was captured\n    // $response-\u003egetData()\n    echo $response-\u003egetTransactionReference(); // payment reference\n}else{\n    // Charge was not captured and payment failed\n    echo $response-\u003egetMessage();\n}\n```\n## Support\n\nIf you are having general issues with Omnipay, we suggest posting on\n[Stack Overflow](http://stackoverflow.com/). Be sure to add the\n[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.\n\nIf you want to keep up to date with release anouncements, discuss ideas for the project,\nor ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which\nyou can subscribe to.\n\nIf you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/adnane-ka/omnipay-tap/issues),\nor better yet, fork the library and submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnane-ka%2Fomnipay-paddle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnane-ka%2Fomnipay-paddle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnane-ka%2Fomnipay-paddle/lists"}