Skip to content

Commit b7cf714

Browse files
committed
Merge pull request #15 from WondersLabCorporation/pull_request_customer
createSubscription bugfix
2 parents 83db112 + e85395b commit b7cf714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Api/Subscription.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class Subscription extends Client
2323
public function createSubscription($data)
2424
{
2525
$response = $this->client->request('POST', 'subscriptions', [
26-
'json' => json_encode($data),
26+
'content-type' => 'application/json',
27+
'body' => json_encode($data),
2728
]);
2829

2930
return $this->processResponse($response);

0 commit comments

Comments
 (0)