Skip to content
Snippets Groups Projects
Commit 74ab6f61 authored by mattwire's avatar mattwire Committed by mattwire
Browse files

Set default domain for StripePaymentintent.get/delete so that the...

Set default domain for StripePaymentintent.get/delete so that the Job.process_stripe can work with multisite
parent 822a8883
No related branches found
No related tags found
1 merge request!1526.6 to master
......@@ -48,6 +48,15 @@ function civicrm_api3_stripe_paymentintent_createorupdate($params) {
return civicrm_api3('StripePaymentintent', 'create', $params);
}
/**
* StripePaymentintent.delete API specification
*
* @param array $spec description of fields supported by this API call
*/
function _civicrm_api3_stripe_paymentintent_delete_spec(&$spec) {
$spec['payment_processor_id.domain_id']['api.default'] = \CRM_Core_Config::domainID();
}
/**
* StripePaymentintent.delete API
*
......@@ -62,6 +71,15 @@ function civicrm_api3_stripe_paymentintent_delete($params) {
return _civicrm_api3_basic_delete('CRM_Stripe_BAO_StripePaymentintent', $params);
}
/**
* StripePaymentintent.get API specification
*
* @param array $spec description of fields supported by this API call
*/
function _civicrm_api3_stripe_paymentintent_get_spec(&$spec) {
$spec['payment_processor_id.domain_id']['api.default'] = \CRM_Core_Config::domainID();
}
/**
* StripePaymentintent.get API
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment