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

add `contribution_source` to `importCharge` API call

parent 5728741f
No related branches found
No related tags found
1 merge request!171fix importcharge API for is_test support and some notices
...@@ -104,6 +104,7 @@ function civicrm_api3_stripe_importsubscription($params) { ...@@ -104,6 +104,7 @@ function civicrm_api3_stripe_importsubscription($params) {
'payment_instrument_id' => $params['payment_instrument_id'], 'payment_instrument_id' => $params['payment_instrument_id'],
'ppid' => $params['ppid'], 'ppid' => $params['ppid'],
'contact_id' => $params['contact_id'], 'contact_id' => $params['contact_id'],
'contribution_source' => ($params['contribution_source'] ?? ''),
]; ];
$contribution = civicrm_api3('Stripe', 'Importcharge', $charge_params); $contribution = civicrm_api3('Stripe', 'Importcharge', $charge_params);
......
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