Skip to content
Snippets Groups Projects
Commit 5728741f authored by Samuele Masetto's avatar Samuele Masetto
Browse files

`civicrm_api3_stripe_customer_create` does not return the customer

parent 07225ef3
No related branches found
No related tags found
1 merge request!171fix importcharge API for is_test support and some notices
......@@ -44,6 +44,7 @@ function civicrm_api3_stripe_importsubscription($params) {
// Create the customer.
$customerParams['contact_id'] = $params['contact_id'];
$custresult = civicrm_api3('StripeCustomer', 'create', $customerParams);
$custresult = civicrm_api3('StripeCustomer', 'get', $customerParams);
}
$customer = array_pop($custresult['values']);
if ($customer['contact_id'] != $params['contact_id']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment