{"id":22678460,"url":"https://github.com/web2solutions/paypalrest","last_synced_at":"2025-03-29T13:12:39.618Z","repository":{"id":22385650,"uuid":"25722422","full_name":"web2solutions/PaypalREST","owner":"web2solutions","description":" Consume Paypal REST API via perl","archived":false,"fork":false,"pushed_at":"2020-11-11T02:59:12.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T13:44:43.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","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/web2solutions.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}},"created_at":"2014-10-25T06:26:18.000Z","updated_at":"2020-11-11T02:59:14.000Z","dependencies_parsed_at":"2022-08-21T03:31:10.816Z","dependency_job_id":null,"html_url":"https://github.com/web2solutions/PaypalREST","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/web2solutions%2FPaypalREST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2FPaypalREST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2FPaypalREST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web2solutions%2FPaypalREST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web2solutions","download_url":"https://codeload.github.com/web2solutions/PaypalREST/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246187242,"owners_count":20737462,"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":"2024-12-09T18:15:24.689Z","updated_at":"2025-03-29T13:12:39.593Z","avatar_url":"https://github.com/web2solutions.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"PaypalREST\n===========\n\nPaypalREST - Consume Paypal REST API via perl\n\n***This is not for production purpose anymore***\n\n## INSTALL\n\n$ cpan App::cpanminus\n\n$ cpanm git://github.com/web2solutions/PaypalREST.git\n\n## SYNOPSIS\n\n````perl\n\tuse PaypalREST;\n\t\n\tmy $paypal = PaypalREST-\u003enew(\n\t\t$client_id\n\t\t,$client_secret\n\t);\n````\n\n## Methods\n\n**PaypalREST-\u003enew()**\n\n**PaypalREST-\u003elive()**\n\n**PaypalREST-\u003erest()**\n\n**PaypalREST-\u003epay_with_ballance()**\n\n**PaypalREST-\u003eexecute_payment()**\n\n**PaypalREST-\u003epay_as_guest()**\n\n**PaypalREST-\u003epay_with_stored_cc()**\n\n**PaypalREST-\u003eget_payment()**\n\n**PaypalREST-\u003eget_payments()**\n\n**PaypalREST-\u003evault_credit_card()**\n\n**PaypalREST-\u003eget_credit_card()**\n\n\n## Examples\n\n**Pay with Paypal balance**\n````perl\t\n\tmy $payment = $paypal-\u003epay_with_ballance({\n\t        amount\t=\u003e 1.59,\n\t        description =\u003e 'pay for service',\n\t        return_url =\u003e 'your_return_url',\n\t        cancel_url =\u003e 'your_cancel_url'\n\t});\n\t\n\t# then execute payment\n\t\n\tmy $payment = $paypal-\u003eexecute_payment({\n\t\texecute_url       =\u003e $execute_url,\n\t\tpayer_id         =\u003e $payer_id\n\t});\n````\n\n**Pay with Credit card balance**\n\n````perl\t\n\tmy $payment = $paypal-\u003epay_as_guest({\n\t        number       =\u003e '4353185781082049',\n\t        type         =\u003e 'visa',\n\t        cvv2           =\u003e '442',\n\t        expire_month =\u003e 3,\n\t        expire_year  =\u003e 2018,\n\t        amount          =\u003e 3.58,\n\t        first_name  =\u003e 'Steve',\n\t        last_name  =\u003e 'Jobs',\n\t        line1  =\u003e 'Street 345',\n\t        city  =\u003e 'Palo Alto',\n\t        state  =\u003e 'CA',\n\t        postal_code  =\u003e '4444',\n\t        country_code  =\u003e 'US',\n\t        description =\u003e 'pay for service'\n\t});\n````\n\n\n### TODO\n\n- doc\n- examples\n- build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb2solutions%2Fpaypalrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb2solutions%2Fpaypalrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb2solutions%2Fpaypalrest/lists"}