Skip to content

Commit

Permalink
Added Bitcoin constant and a new $payment->isPending() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Wong committed May 15, 2014
1 parent c8c47c6 commit 4ca2d2d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Mollie API client for PHP #

Accepting [iDEAL](https://www.mollie.nl/betaaldiensten/ideal/), [Mister Cash](https://www.mollie.nl/betaaldiensten/mistercash/), [Creditcard](https://www.mollie.nl/betaaldiensten/creditcard/), [bank transfer](https://www.mollie.nl/betaaldiensten/overboeking/), [PayPal](https://www.mollie.nl/betaaldiensten/paypal/), and [paysafecard](https://www.mollie.nl/betaaldiensten/paysafecard/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.
Accepting [iDEAL](https://www.mollie.nl/betaaldiensten/ideal/), [Mister Cash](https://www.mollie.nl/betaaldiensten/mistercash/), [Creditcard](https://www.mollie.nl/betaaldiensten/creditcard/), [SEPA Bank transfer](https://www.mollie.nl/betaaldiensten/overboeking/), [Bitcoin](https://www.mollie.nl/betaaldiensten/bitcoin/), [PayPal](https://www.mollie.nl/betaaldiensten/paypal/), and [paysafecard](https://www.mollie.nl/betaaldiensten/paysafecard/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.

[![Build Status](https://travis-ci.org/mollie/mollie-api-php.png)](https://travis-ci.org/mollie/mollie-api-php)

Expand Down Expand Up @@ -128,6 +128,7 @@ Contact: [www.mollie.nl](http://www.mollie.nl) — [email protected] — +31 20-612
+ [More information about credit card via Mollie](https://www.mollie.nl/betaaldiensten/creditcard/)
+ [More information about Mister Cash via Mollie](https://www.mollie.nl/betaaldiensten/mistercash/)
+ [More information about SEPA Bank transfer via Mollie](https://www.mollie.nl/betaaldiensten/overboeking/)
+ [More information about Bitcoin via Mollie](https://www.mollie.nl/betaaldiensten/bitcoin/)
+ [More information about PayPal via Mollie](https://www.mollie.nl/betaaldiensten/paypal/)
+ [More information about paysafecard via Mollie](https://www.mollie.nl/betaaldiensten/paysafecard/)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"email": "[email protected]"
}
],
"keywords": ["mollie","payment", "service", "ideal", "creditcard", "mistercash", "paypal", "paysafecard", "payments", "gateway"],
"keywords": ["mollie","payment", "service", "ideal", "creditcard", "mistercash", "sepa", "bitcoin", "paypal", "paysafecard", "payments", "gateway"],
"require-dev": {
"phpunit/phpunit": "3.7.*"
},
Expand Down
1 change: 1 addition & 0 deletions src/Mollie/API/Object/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Mollie_API_Object_Method
const MISTERCASH = "mistercash";
const BANKTRANSFER = "banktransfer";
const PAYPAL = "paypal";
const BITCOIN = "bitcoin";

/**
* Id of the payment method.
Expand Down
12 changes: 11 additions & 1 deletion src/Mollie/API/Object/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Mollie_API_Object_Payment
const STATUS_OPEN = "open";

/**
* The payment has just been created, no action has happened on it yet.
* The payment has just been started, no final confirmation yet.
*/
const STATUS_PENDING = "pending";

Expand Down Expand Up @@ -170,6 +170,16 @@ public function isOpen ()
return $this->status == self::STATUS_OPEN;
}

/**
* Is this payment pending?
*
* @return bool
*/
public function isPending ()
{
return $this->status == self::STATUS_PENDING;
}

/**
* Is this payment paid for?
*
Expand Down

0 comments on commit 4ca2d2d

Please sign in to comment.