Skip to content
Snippets Groups Projects
Commit 69177bee authored by mattwire's avatar mattwire
Browse files

Fix Stripe create customer in test mode

parent 0f540e11
Branches
Tags
No related merge requests found
......@@ -381,12 +381,13 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
*
* @param array $params
* Assoc array of input parameters for this transaction.
*
* @param string $component
*
* @return array
* Result array
*
* @throws \CRM_Core_Exception
* @throws \CiviCRM_API3_Exception
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
public function doPayment(&$params, $component = 'contribute') {
......
......@@ -50,7 +50,7 @@ class CRM_Stripe_Customer {
$queryParams = [
1 => [$params['contact_id'], 'String'],
2 => [$params['customer_id'], 'String'],
3 => [$params['is_live'], 'Boolean'],
3 => [$params['is_live'] ? 1 : 0, 'Boolean'],
4 => [$params['processor_id'], 'Integer'],
];
CRM_Core_DAO::executeQuery("INSERT INTO civicrm_stripe_customers
......@@ -124,7 +124,7 @@ class CRM_Stripe_Customer {
$queryParams = [
1 => [$params['contact_id'], 'String'],
2 => [$params['is_live'], 'Boolean'],
2 => [$params['is_live'] ? 1 : 0, 'Boolean'],
3 => [$params['processor_id'], 'Integer'],
];
$sql = "DELETE FROM civicrm_stripe_customers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment