{"id":24396630,"url":"https://github.com/cloudipsp/ipsp-php","last_synced_at":"2025-04-11T16:41:36.325Z","repository":{"id":73697991,"uuid":"45194039","full_name":"cloudipsp/ipsp-php","owner":"cloudipsp","description":"PHP SDK","archived":false,"fork":false,"pushed_at":"2017-09-25T16:08:07.000Z","size":33,"stargazers_count":6,"open_issues_count":4,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T12:51:17.713Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudipsp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2015-10-29T15:57:11.000Z","updated_at":"2024-10-30T04:33:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"ecd611cb-96fe-43f3-917f-1dad697c2dd8","html_url":"https://github.com/cloudipsp/ipsp-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudipsp%2Fipsp-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudipsp","download_url":"https://codeload.github.com/cloudipsp/ipsp-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442209,"owners_count":21104133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-01-19T21:54:46.513Z","updated_at":"2025-04-11T16:41:36.316Z","avatar_url":"https://github.com/cloudipsp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPSP (PHP) SDK\n\n## Payment service provider\nA payment service provider (PSP) offers shops online services for accepting electronic payments by a variety of payment methods including credit card, bank-based payments such as direct debit, bank transfer, and real-time bank transfer based on online banking. Typically, they use a software as a service model and form a single payment gateway for their clients (merchants) to multiple payment methods. \n[read more](https://en.wikipedia.org/wiki/Payment_service_provider)\n\n## Installation\n```cmd\ngit clone git@github.com:cloudipsp/ipsp-php.git\n```\n## Quick Start\n\n```php\n\u003c?php\nrequire_once 'ipsp-php/autoload.php';\ndefine('MERCHANT_ID' , 'your_merchant_id');\ndefine('MERCHANT_PASSWORD' , 'test');\ndefine('IPSP_GATEWAY' , 'your_ipsp_gateway');\n$client = new Ipsp_Client( MERCHANT_ID , MERCHANT_PASSWORD, IPSP_GATEWAY );\n$ipsp   = new Ipsp_Api( $client );\n```\n\n## Generate Signature\n\n```php\n\u003c?php\nfunction getSignature( $merchant_id , $password , $params = array() ){\n $params['merchant_id'] = $merchant_id;\n $params = array_filter($params,'strlen');\n ksort($params);\n $params = array_values($params);\n array_unshift( $params , $password );\n $params = join('|',$params);\n return(sha1($params));\n}\n```\n\n## Generate Checkout\n\n```php\n\u003c?php\n$order_id = 'testproduct10002';\n$data = $ipsp-\u003ecall('checkout',array(\n 'order_id'    =\u003e $order_id,\n 'order_desc'  =\u003e 'Short Order Description',\n 'currency'    =\u003e $ipsp::USD ,\n 'amount'      =\u003e 2000, // 20 USD\n 'response_url'=\u003e sprintf('http://shop.example.com/checkout/%s',$order_id)\n))-\u003egetResponse();\n// redirect to checkoutpage\nheader(sprintf('Location: %s',$data-\u003echeckout_url));\n```\n\n## API Methods\n### Accept purchase (hosted payment page)\n```php\n$data = $ipsp-\u003ecall('checkout',array());\n```\n### Accept purchase (merchant payment page)\n```php\n$data = $ipsp-\u003ecall('pcidss',array());\n```\n### Purchase using card token\n```php\n$data = $ipsp-\u003ecall('recurring',array());\n```\n### Payment report\n```php\n$data = $ipsp-\u003ecall('reports',array());\n```\n### Order Refund\n```php\n$data = $ipsp-\u003ecall('reverse',array());\n```\n### Check payment status\n```php\n$data = $ipsp-\u003ecall('status',array());\n```\n### Card verification\n```php\n$data = $ipsp-\u003ecall('verification',array());\n```\n### Order capture\n```php\n$data = $ipsp-\u003ecall('capture',array());\n```\n### P2P card credit\n```php\n$data = $ipsp-\u003ecall('p2pcredit',array());\n```\n\n## Examples\n\nCheckout ipsp examples https://github.com/kosatyi/ipsp-php-examples.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudipsp%2Fipsp-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudipsp%2Fipsp-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudipsp%2Fipsp-php/lists"}