-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
8 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,52 +13,7 @@ | |
* is transferred. The transaction will need to be captured later | ||
* in order to effect payment. Uncaptured charges expire in 7 days. | ||
* | ||
* Example: | ||
* | ||
* <code> | ||
* // Create a gateway for the CheckoutCom Gateway | ||
* // (routes to GatewayFactory::create) | ||
* $gateway = Omnipay::create('CheckoutCom'); | ||
* | ||
* // Initialise the gateway | ||
* $gateway->initialize(array( | ||
* 'apiKey' => 'MyApiKey', | ||
* )); | ||
* | ||
* // Create a credit card object | ||
* // This card can be used for testing. | ||
* $card = new CreditCard(array( | ||
* 'firstName' => 'Example', | ||
* 'lastName' => 'Customer', | ||
* 'number' => '4242424242424242', | ||
* 'expiryMonth' => '01', | ||
* 'expiryYear' => '2020', | ||
* 'cvv' => '123', | ||
* 'email' => '[email protected]', | ||
* 'billingAddress1' => '1 Scrubby Creek Road', | ||
* 'billingCountry' => 'AU', | ||
* 'billingCity' => 'Scrubby Creek', | ||
* 'billingPostcode' => '4999', | ||
* 'billingState' => 'QLD', | ||
* )); | ||
* | ||
* // Do an authorize transaction on the gateway | ||
* $transaction = $gateway->authorize(array( | ||
* 'amount' => '10.00', | ||
* 'currency' => 'USD', | ||
* 'description' => 'This is a test authorize transaction.', | ||
* 'card' => $card, | ||
* )); | ||
* $response = $transaction->send(); | ||
* if ($response->isSuccessful()) { | ||
* echo "Authorize transaction was successful!\n"; | ||
* $sale_id = $response->getTransactionReference(); | ||
* echo "Transaction reference = " . $sale_id . "\n"; | ||
* } | ||
* </code> | ||
* | ||
* @see \Omnipay\CheckoutCom\Gateway | ||
* @link https://stripe.com/docs/api#charges | ||
* @link https://www.checkout.com/docs/api/API-reference/payment-tokens/create-payment-token | ||
*/ | ||
class AuthorizeRequest extends AbstractRequest | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Omnipay\Stripe\Message; | ||
namespace Omnipay\CheckoutCom\Message; | ||
|
||
use Omnipay\Tests\TestCase; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Omnipay\Stripe\Message; | ||
namespace Omnipay\CheckoutCom\Message; | ||
|
||
use Omnipay\Tests\TestCase; | ||
|
||
|