Skip to content

Commit

Permalink
Merge pull request #325 from ForeverGlory/develop
Browse files Browse the repository at this point in the history
Add payment default notify_url.
  • Loading branch information
overtrue committed Mar 6, 2016
2 parents d58dd7e + 25fa41d commit 2012691
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Payment/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public function __construct(Merchant $merchant)
*/
public function pay(Order $order)
{
$order['notify_url'] = $order['notify_url']? : $this->merchant->notify_url;

return $this->request(self::API_PAY_ORDER, $order->all());
}

Expand All @@ -93,6 +95,8 @@ public function pay(Order $order)
*/
public function prepare(Order $order)
{
$order['notify_url'] = $order['notify_url']? : $this->merchant->notify_url;

return $this->request(self::API_PREPARE_ORDER, $order->all());
}

Expand Down

0 comments on commit 2012691

Please sign in to comment.