got the following error when I try to create plan object in tripe via laraship,
"message": "Received unknown parameters: name, statement_descriptor",
After checking, noticed that Stripe recently updated their APIs (The plan object fields statement_descriptor and name attributes have been moved to product objects)
https://stripe.com/docs/upgrades#2018-02-05
Do you have plan to update Laraship accordingly? or any quick fix for that?
Thanks.
Gavin
1 Answers
Hello,
Please update stripe Plugin to 1.3.4
Â
to do a quick fix till we upgrade and test the new changes lets try the following solution:
Â
Corals\modules\Payment\Stripe\Message\AbstractRequest.php
line 195
Â
add to the array the following element 'Stripe-Version' => '2017-12-14'
Â
so the array will be like this
$headers = array('Authorization' => 'Basic ' . base64_encode($this->getApiKey() . ':'),
'Stripe-Version' => '2017-12-14');
Please login or Register to submit your answer