Skip to content

Commit

Permalink
add rest order payment method
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fairchild committed Feb 21, 2019
1 parent 52ac6b0 commit 16855b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Infusionsoft/Api/Rest/OrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ class OrderService extends RestModel {
public $full_url = 'https://api.infusionsoft.com/crm/rest/v1/orders';
public $return_key = 'orders';


public function addPayment($paymentDetails)
{

$response = $this->client->restfulRequest('post', $this->getFullUrl($this->id . '/payments'), $paymentDetails);

return $response;
}

}

0 comments on commit 16855b7

Please sign in to comment.