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

Merge branch 'master' into 'master'

Fixes some issues in test mode

Closes #34

See merge request !19
parents a5a60915 c112f611
No related branches found
No related tags found
1 merge request!19Fixes some issues in test mode
Loading
  • A couple of spots where $params['is_live'] needs processing, it's still missing. I'm using following patch:

    diff --git a/CRM/Stripe/Customer.php b/CRM/Stripe/Customer.php
    index 67d821b..b3adf78 100644
    --- a/CRM/Stripe/Customer.php
    +++ b/CRM/Stripe/Customer.php
    @@ -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.
Finish editing this message first!
Please register or to comment