File manager - Edit - /home/opticamezl/www/newok/stripe.zip
Back
PK x��\�W� � .travis.ymlnu &1i� language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - composer install -n --dev --prefer-source script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text PK x��\��t� � composer.jsonnu &1i� { "name": "omnipay/stripe", "type": "library", "description": "Stripe driver for the Omnipay payment processing library", "keywords": [ "gateway", "merchant", "omnipay", "pay", "payment", "stripe" ], "homepage": "https://github.com/thephpleague/omnipay-stripe", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, { "name": "Omnipay Contributors", "homepage": "https://github.com/thephpleague/omnipay-stripe/contributors" } ], "autoload": { "psr-4": { "Omnipay\\Stripe\\" : "src/" } }, "require": { "omnipay/common": "~2.0" }, "require-dev": { "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } PK x��\�5�d runtests.shnu &1i� #!/bin/sh # # Command line runner for unit tests for composer projects # (c) Del 2015 http://www.babel.com.au/ # No Rights Reserved # # # Clean up after any previous test runs # mkdir -p documents rm -rf documents/coverage-html-new rm -f documents/coverage.xml # # Run phpunit # vendor/bin/phpunit --coverage-html documents/coverage-html-new --coverage-clover documents/coverage.xml if [ -d documents/coverage-html-new ]; then rm -rf documents/coverage-html mv documents/coverage-html-new documents/coverage-html fi PK x��\V���� � README.mdnu &1i� # Omnipay: Stripe **Stripe driver for the Omnipay PHP payment processing library** [](https://travis-ci.org/thephpleague/omnipay-stripe) [](https://packagist.org/packages/omnipay/stripe) [](https://packagist.org/packages/omnipay/stripe) [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Stripe support for Omnipay. ## Installation Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file: ```json { "require": { "omnipay/stripe": "~2.0" } } ``` And run composer to update your dependencies: $ curl -s http://getcomposer.org/installer | php $ php composer.phar update ## Basic Usage The following gateways are provided by this package: * [Stripe](https://stripe.com/) For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository. ### Stripe.js The Stripe integration is fairly straight forward. Essentially you just pass a `token` field through to Stripe instead of the regular credit card data. Start by following the standard Stripe JS guide here: [https://stripe.com/docs/tutorials/forms](https://stripe.com/docs/tutorials/forms) After that you will have a `stripeToken` field which will be submitted to your server. Simply pass this through to the gateway as `token`, instead of the usual `card` array: ```php $token = $_POST['stripeToken']; $response = $gateway->purchase(['amount' => '10.00', 'currency' => 'USD', 'token' => $token])->send(); ``` ### Stripe Connect Stripe connect applications can charge an additional fee on top of Stripe's fees for charges they make on behalf of their users. To do this you need to specify an additional `transactionFee` parameter as part of an authorize or purchase request. When a charge is refunded the transaction fee is refunded with an amount proportional to the amount of the charge refunded and by default this will come from your connected user's Stripe account effectively leaving them out of pocket. To refund from your (the applications) Stripe account instead you can pass a ``refundApplicationFee`` parameter with a boolean value of true as part of a refund request. Note: making requests with Stripe Connect specific parameters can only be made using the OAuth access token you received as part of the authorization process. Read more on Stripe Connect [here](https://stripe.com/docs/connect). ## Test Mode Stripe accounts have test-mode API keys as well as live-mode API keys. These keys can be active at the same time. Data created with test-mode credentials will never hit the credit card networks and will never cost anyone money. Unlike some gateways, there is no test mode endpoint separate to the live mode endpoint, the Stripe API endpoint is the same for test and for live. ## Support If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found. If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to. If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/thephpleague/omnipay-stripe/issues), or better yet, fork the library and submit a pull request. PK x��\Z �o� � tests/Mock/CreateCardFailure.txtnu &1i� HTTP/1.1 402 Payment Required Server: nginx Date: Tue, 26 Feb 2013 16:17:02 GMT Content-Type: application/json;charset=utf-8 Content-Length: 139 Connection: keep-alive Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true Cache-Control: no-cache, no-store { "error": { "message": "You must provide an integer value for 'exp_year'.", "type": "card_error", "param": "exp_year" } } PK x��\���uf f - tests/Mock/FetchBalanceTransactionSuccess.txtnu &1i� HTTP/1.1 200 OK Server: nginx Date: Wed, 24 Jul 2013 07:14:02 GMT Content-Type: application/json;charset=utf-8 Content-Length: 1092 Connection: keep-alive Access-Control-Allow-Credentials: true Access-Control-Max-Age: 300 Cache-Control: no-cache, no-store { "id": "txn_1044bu4CmsDZ3Zk6BGg97VUU", "object": "balance_transaction", "amount": 4013, "available_on": 1401235200, "created": 1400651717, "currency": "eur", "description": "Test #4", "fee": 226, "fee_details": [ { "amount": 80, "application": null, "currency": "chf", "description": "Stripe currency conversion fee", "type": "stripe_fee" }, { "amount": 146, "application": null, "currency": "chf", "description": "Stripe processing fees", "type": "stripe_fee" } ], "net": 3787, "source": "ch_1044bu4CmsDZ3Zk6HkSkVsxd", "sourced_transfers": { "object": "list", "data": [ ], "has_more": false, "total_count": 0, "url": "/v1/transfers?source_transaction=ch_1044bu4CmsDZ3Zk6HkSkVsxd" }, "status": "available", "type": "charge" } PK x��\=��? ? tests/Mock/RefundSuccess.txtnu &1i� HTTP/1.1 200 OK {"id":"ch_12RgN9L7XhO9mI","object": "charge"} PK x��\֒坊 � $ tests/Mock/UpdateCustomerFailure.txtnu &1i� HTTP/1.1 404 Not Found Server: nginx Date: Tue, 26 Feb 2013 16:32:51 GMT Content-Type: application/json;charset=utf-8 Content-Length: 131 Connection: keep-alive Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true Cache-Control: no-cache, no-store { "error": { "type": "invalid_request_error", "message": "No such customer: cus_1MZeNih5LdKxDq", "param": "id" } } PK x��\S��;� � tests/Mock/FetchTokenFailure.txtnu &1i� HTTP/1.1 404 Not Found Server: nginx Date: Wed, 24 Jul 2013 13:40:31 GMT Content-Type: application/json;charset=utf-8 Content-Length: 132 Connection: keep-alive Access-Control-Allow-Credentials: true Access-Control-Max-Age: 300 Cache-Control: no-cache, no-store { "error": { "type": "invalid_request_error", "message": "No such token: tok_15Kuns2eZvKYlo2CDt9wRdzS", "param": "id" } } PK x��\֒坊 � tests/Mock/DeleteCardFailure.txtnu &1i� HTTP/1.1 404 Not Found Server: nginx Date: Tue, 26 Feb 2013 16:32:51 GMT Content-Type: application/json;charset=utf-8 Content-Length: 131 Connection: keep-alive Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true Cache-Control: no-cache, no-store { "error": { "type": "invalid_request_error", "message": "No such customer: cus_1MZeNih5LdKxDq", "param": "id" } } PK x��\nL�3 3 $ tests/Mock/DeleteCustomerSuccess.txtnu &1i� HTTP/1.1 200 OK Server: nginx Date: Tue, 26 Feb 2013 16:33:08 GMT Content-Type: application/json;charset=utf-8 Content-Length: 52 Connection: keep-alive Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true Cache-Control: no-cache, no-store { "deleted": true, "id": "cus_1MZSEtqSghKx99" } PK x��\�^�_ _ tests/Mock/PurchaseSuccess.txtnu &1i� HTTP/1.1 200 OK Server: nginx Date: Fri, 15 Feb 2013 18:25:28 GMT Content-Type: application/json;charset=utf-8 Content-Length: 995 Connection: keep-alive Cache-Control: no-cache, no-store Access-Control-Allow-Credentials: true Access-Control-Max-Age: 300 { "id": "ch_1IU9gcUiNASROd", "object": "charge", "created": 1360952728, "livemode": false, "paid": true, "amount": 1000, "currency": "usd", "refunded": false, "fee": 59, "fee_details": [ { "amount": 59, "currency": "usd", "type": "stripe_fee", "description": "Stripe processing fees", "application": null, "amount_refunded": 0 } ], "source": { "id": "card_16n3EU2baUhq7QENSrstkoN0", "object": "card", "address_city": "", "address_country": "", "address_line1": "", "address_line1_check": null, "address_line2": "", "address_state": "", "address_zip": "", "address_zip_check": null, "brand": "Visa", "country": "US", "customer": null, "cvc_check": "pass", "dynamic_last4": null, "exp_month": 6, "exp_year": 2016, "funding": "credit", "last4": "4242", "metadata": { }, "name": "", "tokenization_method": null }, "failure_message": null, "amount_refunded": 0, "customer": null, "invoice": null, "description": "first purchase", "dispute": null } PK x��\�}� � tests/Mock/CaptureFailure.txtnu &1i� HTTP/1.1 400 Bad Request Server: nginx Date: Sun, 05 May 2013 08:52:09 GMT Content-Type: application/json;charset=utf-8 Content-Length: 127 Connection: keep-alive Cache-Control: no-cache, no-store Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true { "error": { "type": "invalid_request_error", "message": "Charge ch_1lvgjcQgrNWUuZ has already been captured." } } PK x��\֒坊 � tests/Mock/UpdateCardFailure.txtnu &1i� HTTP/1.1 404 Not Found Server: nginx Date: Tue, 26 Feb 2013 16:32:51 GMT Content-Type: application/json;charset=utf-8 Content-Length: 131 Connection: keep-alive Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true Cache-Control: no-cache, no-store { "error": { "type": "invalid_request_error", "message": "No such customer: cus_1MZeNih5LdKxDq", "param": "id" } } PK x��\=��? ? tests/Mock/VoidSuccess.txtnu &1i� HTTP/1.1 200 OK {"id":"ch_12RgN9L7XhO9mI","object": "charge"} PK x��\{�*�� � $ tests/Mock/CreateCustomerSuccess.txtnu &1i� HTTP/1.1 200 OK Server: nginx Date: Tue, 26 Feb 2013 16:11:12 GMT Content-Type: application/json;charset=utf-8 Connection: keep-alive Access-Control-Max-Age: 300 Access-Control-Allow-Credentials: true Cache-Control: no-cache, no-store { "object": "customer", "created": 1361895072, "id": "cus_1MZSEtqSghKx99", "livemode": false, "description": "fdsa", "default_card": "card_15WhVwIobxWFFmzdQ3QBSwNi", "active_card": { "object": "card", "last4": "4242", "type": "Visa", "exp_month": 9, "exp_year": 2019, "fingerprint": "dfB0t0avO0bWr9eY", "country": "US", "name": "fdjsk fdjksl", "address_line1": "", "address_line2": "", "address_city": "", "address_state": "", "address_zip": "", "address_country": "", "cvc_check": "pass", "address_line1_check": "pass", "address_zip_check": "pass" }, "email": null, "delinquent": false, "subscription": null, "discount": null, "account_balance": 0 } PK x��\�b@]\ \ ( tests/Mock/PurchaseWithSourceSuccess.txtnu &1i� HTTP/1.1 200 OK Server: nginx Date: Fri, 15 Feb 2013 18:25:28 GMT Content-Type: application/json;charset=utf-8 Content-Length: 995 Connection: keep-alive Cache-Control: no-cache, no-store Access-Control-Allow-Credentials: true Access-Control-Max-Age: 300 { "id": "ch_1IU9gcUiNASROd", "object": "charge", "created": 1360952728, "livemode": false, "paid": true, "amount": 1000, "currency": "usd", "refunded": false, "fee": 59, "fee_details": [ { "amount": 59, "currency": "usd", "type": "stripe_fee", "description": "Stripe processing fees", "application": null, "amount_refunded": 0 } ], "source": { "id": "card_15WgqxIobxWFFmzdk5V9z3g9" }, "failure_message": null, "amount_refunded": 0, "customer": null, "invoice": null, "description": "first purchase", "dispute": null } PK x��\���(� � &