Stripe issueshttps://lab.civicrm.org/extensions/stripe/-/issues2022-01-24T15:30:11Zhttps://lab.civicrm.org/extensions/stripe/-/issues/351Drupal webform - Error when the card used requires 3D Secure and the payment ...2022-01-24T15:30:11ZdmunioDrupal webform - Error when the card used requires 3D Secure and the payment is declined- One-time payment Drupal webform by Stripe.
- When using a trial card that requires 3D Secure but payments will be declined with a card_declined failure code after authentication.
![image](/uploads/b23b37b51e2d894dba4f1fb3b63a3ca5/ima...- One-time payment Drupal webform by Stripe.
- When using a trial card that requires 3D Secure but payments will be declined with a card_declined failure code after authentication.
![image](/uploads/b23b37b51e2d894dba4f1fb3b63a3ca5/image.png)
- In Drupal, when completing the form no error is reported and the confirmation page is displayed.
- In CiviCRM the contribution remains in Completed status (but in Stripe the payment was rejected).
![Captura_de_pantalla-20220118084446-1042x635](/uploads/3f4b1b19c92f961f3df7eb6b70c2918d/Captura_de_pantalla-20220118084446-1042x635.png)https://lab.civicrm.org/extensions/stripe/-/issues/255Duplicate contacts created due to billing name/address fields unavailable to ...2020-09-28T09:51:18ZBobSDuplicate contacts created due to billing name/address fields unavailable to dedupe functionDebugging hook_civicrm_dupeQuery reveals that upon submission of a Stripe contribution, only fields in the profile(s) specified for the contribution page are available for deduping. Fields in the Stripe billing block, e.g. first_name, ci...Debugging hook_civicrm_dupeQuery reveals that upon submission of a Stripe contribution, only fields in the profile(s) specified for the contribution page are available for deduping. Fields in the Stripe billing block, e.g. first_name, city, etc. are not available, and duplicate contacts may therefore be created when the dedupe depend on these fields.
Example:
- Assume the dedupe rule is First Name:7, Phone:4, Email:4, with Threshold:11, and that the contribution page specifies a profile with phone and email fields.
- A contact submitting a Stripe contribution will create a new contact record, even after previously making a contribution with identical parameters, because First Name is not available to the dedupe function, and the sum of the Phone and Email weights is less than the Threshold.
Temporary workaround: For the specific dedupe rule used in the above example, and for the specific payment processor ID's in my installation, normal dedupe function was restored by adding the following hook:
```
function mymodule_civicrm_dupeQuery($obj, $type, &$query) {
if ($type=="table" && $_GET["q"]=="civicrm/contribute/transact" && ($_POST["payment_processor_id"] == 3 || $_POST["payment_processor_id"] == 4)) {
$obj->params["civicrm_contact"]["first_name"] = $_POST['billing_first_name'];
$query["civicrm_contact.first_name.7"] = "SELECT t1.id id1, 7 weight FROM civicrm_contact t1 WHERE t1.contact_type = 'Individual' AND t1.first_name = \"$_POST[billing_first_name]\"";
}
}
```
Config:
* CiviCRM 5.28.2
* stripe 6.4.2
* mjwshared 0.8.1
* PHP 7.3https://lab.civicrm.org/extensions/stripe/-/issues/194Duplicate Membership Transactions2020-06-20T15:58:12ZbpaystDuplicate Membership TransactionsWe are consistently seeing duplicate transactions for membership payments. All other payments are working as expected. There are 2 payments processed, about 2-3 minutes apart. They come back to CiviCRM as the same member, so it adds an e...We are consistently seeing duplicate transactions for membership payments. All other payments are working as expected. There are 2 payments processed, about 2-3 minutes apart. They come back to CiviCRM as the same member, so it adds an extra year to their membership. The logs show the duplicate insert as well:
CiviCRM.47378027cb5757ccbf6f817d.log:Apr 23 15:52:21 [info] Retrying after Database deadlock encountered hit on attempt 1 at query : INSERT INTO civicrm_activity_contact (activity_id , contact_id , record_type_id ) VALUES ( 18107 , 7062 , 2 )
: INSERT INTO civicrm_activity_contact (activity_id , contact_id , record_type_id ) VALUES ( 18107 , 7062 , 2 )
Apr 23 15:52:23 [error] $Fatal Error Details = Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => exceptionHandler
)
[code] => -5
[message] => DB Error: already exists
[mode] => 16
[debug_info] => INSERT INTO civicrm_activity_contact (activity_id , contact_id , record_type_id ) VALUES ( 18107 , 7062 , 2 ) [nativecode=1062 ** Duplicate entry '7062-18107-2' for key 'UI_activity_contact']
[type] => DB_Error
[user_info] => INSERT INTO civicrm_activity_contact (activity_id , contact_id , record_type_id ) VALUES ( 18107 , 7062 , 2 ) [nativecode=1062 ** Duplicate entry '7062-18107-2' for key 'UI_activity_contact']
[to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::exceptionHandler prefix="" info="INSERT INTO civicrm_activity_contact (activity_id , contact_id , record_type_id ) VALUES ( 18107 , 7062 , 2 ) [nativecode=1062 ** Duplicate entry '7062-18107-2' for key 'UI_activity_contact']"]
)
https://lab.civicrm.org/extensions/stripe/-/issues/130entryURL error2020-06-20T16:00:45ZKMRDentryURL errorRunning CiviCRM 5.18.4, Stripe 6.2.2, MJWShared 5.1, on Drupal 7. Getting this error printed on thank you page for contributions. Not sure if it's a bug or a configuration error on my part.
Notice: Undefined index: entryURL in CRM_C...Running CiviCRM 5.18.4, Stripe 6.2.2, MJWShared 5.1, on Drupal 7. Getting this error printed on thank you page for contributions. Not sure if it's a bug or a configuration error on my part.
Notice: Undefined index: entryURL in CRM_Core_Payment_Stripe::getErrorUrl() (line 286 of /home/kmrd/www/www/sites/default/files/civicrm/ext/mjwshared/CRM/Core/Payment/MJWTrait.php).
Notice: Undefined index: query in CRM_Core_Payment_Stripe::getErrorUrl() (line 288 of /home/kmrd/www/www/sites/default/files/civicrm/ext/mjwshared/CRM/Core/Payment/MJWTrait.php).
Notice: Undefined index: entryURL in CRM_Core_Payment_Stripe->doPayment() (line 430 of /home/kmrd/www/www/sites/default/files/civicrm/ext/com.drastikbydesign.stripe/CRM/Core/Payment/Stripe.php).
Notice: Undefined index: query in CRM_Core_Payment_Stripe->doPayment() (line 432 of /home/kmrd/www/www/sites/default/files/civicrm/ext/com.drastikbydesign.stripe/CRM/Core/Payment/Stripe.php).https://lab.civicrm.org/extensions/stripe/-/issues/273Error on IPN webhook call on 6.5.4 and MJW 0.9.72021-05-09T19:16:38ZtapashError on IPN webhook call on 6.5.4 and MJW 0.9.7`$Fatal Error Details = array(3) { ["message"]=> string(3010) "failed to load related objectsDB Error: already exists #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(2627): civicrm_api3('Co...`$Fatal Error Details = array(3) { ["message"]=> string(3010) "failed to load related objectsDB Error: already exists #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(2627): civicrm_api3('Contribution', 'create', Array) #1 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(4478): CRM_Contribute_BAO_Contribution::repeatTransaction(Object(CRM_Contribute_BAO_Contribution), Array, Array, '3') #2 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/v3/Contribution.php(686): CRM_Contribute_BAO_Contribution::completeOrder(Array, Array, Array, Object(CRM_Core_Transaction), NULL) #3 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/v3/Contribution.php(629): _ipn_process_transaction(Array, Object(CRM_Contribute_BAO_Contribution), Array, Array, Object(CRM_Contribute_BAO_Contribution)) #4 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_contribution_repeattransaction(Array) #5 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Kernel.php(150): Civi\API\Provider\MagicFunctionProvider->invoke(Array) #6 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest(Array) #7 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/api.php(131): Civi\API\Kernel->runSafe('Contribution', 'repeattransacti...', Array) #8 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/mjwshared/CRM/Core/Payment/MJWIPNTrait.php(243): civicrm_api3('Contribution', 'repeattransacti...', Array) #9 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php(409): CRM_Core_Payment_StripeIPN->repeatContribution(Array) #10 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php(217): CRM_Core_Payment_StripeIPN->createNextContributionForRecur() #11 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/Stripe.php(1143): CRM_Core_Payment_StripeIPN->main() #12 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php(1619): CRM_Core_Payment_Stripe->handlePaymentNotification() #13 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php(1512): CRM_Core_Payment::handlePaymentMethod('handlePaymentNo...', Array) #14 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(278): CRM_Core_Payment::handleIPN() #15 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(68): CRM_Core_Invoke::runItem(Array) #16 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke(Array) #17 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke(Array) #18 /home/webadmin/public_html/cmm/includes/menu.inc(527): civicrm_invoke('payment', 'ipn', '3') #19 /home/webadmin/public_html/cmm/index.php(21): menu_execute_active_handler() #20 {main}" ["code"]=> NULL ["exception"]=> object(CiviCRM_API3_Exception)#2627 (8) { ["extraParams":"CiviCRM_API3_Exception":private]=> array(5) { ["error_code"]=> int(0) ["entity"]=> string(12) "Contribution" ["action"]=> string(17) "repeattransaction" ["is_error"]=> int(1) ["error_message"]=> string(3010) "failed to load related objectsDB Error: already exists #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(2627): civicrm_api3('Contribution', 'create', Array) #1 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(4478): CRM_Contribute_BAO_Contribution::repeatTransaction(Object(CRM_Contribute_BAO_Contribution), Array, Array, '3') #2 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/v3/Contribution.php(686): CRM_Contribute_BAO_Contribution::completeOrder(Array, Array, Array, Object(CRM_Core_Transaction), NULL) #3 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/v3/Contribution.php(629): _ipn_process_transaction(Array, Object(CRM_Contribute_BAO_Contribution), Array, Array, Object(CRM_Contribute_BAO_Contribution)) #4 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_contribution_repeattransaction(Array) #5 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Kernel.php(150): Civi\API\Provider\MagicFunctionProvider->invoke(Array) #6 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest(Array) #7 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/api.php(131): Civi\API\Kernel->runSafe('Contribution', 'repeattransacti...', Array) #8 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/mjwshared/CRM/Core/Payment/MJWIPNTrait.php(243): civicrm_api3('Contribution', 'repeattransacti...', Array) #9 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php(409): CRM_Core_Payment_StripeIPN->repeatContribution(Array) #10 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php(217): CRM_Core_Payment_StripeIPN->createNextContributionForRecur() #11 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/Stripe.php(1143): CRM_Core_Payment_StripeIPN->main() #12 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php(1619): CRM_Core_Payment_Stripe->handlePaymentNotification() #13 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php(1512): CRM_Core_Payment::handlePaymentMethod('handlePaymentNo...', Array) #14 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(278): CRM_Core_Payment::handleIPN() #15 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(68): CRM_Core_Invoke::runItem(Array) #16 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke(Array) #17 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke(Array) #18 /home/webadmin/public_html/cmm/includes/menu.inc(527): civicrm_invoke('payment', 'ipn', '3') #19 /home/webadmin/public_html/cmm/index.php(21): menu_execute_active_handler() #20 {main}" } ["message":protected]=> string(3010) "failed to load related objectsDB Error: already exists #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(2627): civicrm_api3('Contribution', 'create', Array) #1 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(4478): CRM_Contribute_BAO_Contribution::repeatTransaction(Object(CRM_Contribute_BAO_Contribution), Array, Array, '3') #2 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/v3/Contribution.php(686): CRM_Contribute_BAO_Contribution::completeOrder(Array, Array, Array, Object(CRM_Core_Transaction), NULL) #3 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/v3/Contribution.php(629): _ipn_process_transaction(Array, Object(CRM_Contribute_BAO_Contribution), Array, Array, Object(CRM_Contribute_BAO_Contribution)) #4 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_contribution_repeattransaction(Array) #5 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Kernel.php(150): Civi\API\Provider\MagicFunctionProvider->invoke(Array) #6 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest(Array) #7 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/api.php(131): Civi\API\Kernel->runSafe('Contribution', 'repeattransacti...', Array) #8 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/mjwshared/CRM/Core/Payment/MJWIPNTrait.php(243): civicrm_api3('Contribution', 'repeattransacti...', Array) #9 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php(409): CRM_Core_Payment_StripeIPN->repeatContribution(Array) #10 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php(217): CRM_Core_Payment_StripeIPN->createNextContributionForRecur() #11 /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/Stripe.php(1143): CRM_Core_Payment_StripeIPN->main() #12 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php(1619): CRM_Core_Payment_Stripe->handlePaymentNotification() #13 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php(1512): CRM_Core_Payment::handlePaymentMethod('handlePaymentNo...', Array) #14 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(278): CRM_Core_Payment::handleIPN() #15 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(68): CRM_Core_Invoke::runItem(Array) #16 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke(Array) #17 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke(Array) #18 /home/webadmin/public_html/cmm/includes/menu.inc(527): civicrm_invoke('payment', 'ipn', '3') #19 /home/webadmin/public_html/cmm/index.php(21): menu_execute_active_handler() #20 {main}" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(68) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/api/api.php" ["line":protected]=> int(133) ["trace":"Exception":private]=> array(12) { [0]=> array(4) { ["file"]=> string(105) "/home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/mjwshared/CRM/Core/Payment/MJWIPNTrait.php" ["line"]=> int(243) ["function"]=> string(12) "civicrm_api3" ["args"]=> array(3) { [0]=> string(12) "Contribution" [1]=> string(17) "repeattransaction" [2]=> array(9) { ["contribution_recur_id"]=> string(3) "230" ["contribution_status_id"]=> int(2) ["receive_date"]=> string(14) "20201109122653" ["order_reference"]=> string(27) "in_1HlZSTA7J6ExrhfuzJOwTz9K" ["trxn_id"]=> string(27) "in_1HlZSTA7J6ExrhfuzJOwTz9K" ["total_amount"]=> int(5) ["fee_amount"]=> float(0.26) ["is_email_receipt"]=> bool(false) ["version"]=> int(3) } } } [1]=> array(6) { ["file"]=> string(100) "/home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php" ["line"]=> int(409) ["function"]=> string(18) "repeatContribution" ["class"]=> string(26) "CRM_Core_Payment_StripeIPN" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(7) { ["contribution_recur_id"]=> string(3) "230" ["contribution_status_id"]=> int(2) ["receive_date"]=> string(14) "20201109122653" ["order_reference"]=> string(27) "in_1HlZSTA7J6ExrhfuzJOwTz9K" ["trxn_id"]=> string(27) "ch_1HlaOjA7J6Exrhfu48N5cAn0" ["total_amount"]=> int(5) ["fee_amount"]=> float(0.26) } } } [2]=> array(6) { ["file"]=> string(100) "/home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/StripeIPN.php" ["line"]=> int(217) ["function"]=> string(30) "createNextContributionForRecur" ["class"]=> string(26) "CRM_Core_Payment_StripeIPN" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(97) "/home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/stripe/CRM/Core/Payment/Stripe.php" ["line"]=> int(1143) ["function"]=> string(4) "main" ["class"]=> string(26) "CRM_Core_Payment_StripeIPN" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [4]=> array(6) { ["file"]=> string(77) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php" ["line"]=> int(1619) ["function"]=> string(25) "handlePaymentNotification" ["class"]=> string(23) "CRM_Core_Payment_Stripe" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [5]=> array(6) { ["file"]=> string(77) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Payment.php" ["line"]=> int(1512) ["function"]=> string(19) "handlePaymentMethod" ["class"]=> string(16) "CRM_Core_Payment" ["type"]=> string(2) "::" ["args"]=> array(2) { [0]=> string(25) "handlePaymentNotification" [1]=> array(3) { ["processor_name"]=> NULL ["processor_id"]=> string(1) "3" ["mode"]=> NULL } } } [6]=> array(6) { ["file"]=> string(76) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php" ["line"]=> int(278) ["function"]=> string(9) "handleIPN" ["class"]=> string(16) "CRM_Core_Payment" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [7]=> array(6) { ["file"]=> string(76) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php" ["line"]=> int(68) ["function"]=> string(7) "runItem" ["class"]=> string(15) "CRM_Core_Invoke" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &array(14) { ["id"]=> string(3) "215" ["domain_id"]=> string(1) "1" ["path"]=> string(19) "civicrm/payment/ipn" ["access_callback"]=> string(1) "1" ["access_arguments"]=> array(2) { [0]=> array(1) { [0]=> string(21) "access CiviContribute" } [1]=> string(3) "and" } ["page_callback"]=> array(2) { [0]=> string(16) "CRM_Core_Payment" [1]=> string(9) "handleIPN" } ["breadcrumb"]=> array(2) { [0]=> array(2) { ["title"]=> string(7) "CiviCRM" ["url"]=> string(16) "/civicrm?reset=1" } [1]=> array(2) { ["title"]=> string(11) "New Payment" ["url"]=> string(39) "/civicrm/payment?reset=1&action=add" } } ["component_id"]=> string(1) "2" ["is_public"]=> string(1) "1" ["is_ssl"]=> string(1) "0" ["weight"]=> string(1) "1" ["type"]=> string(1) "1" ["page_type"]=> string(1) "0" ["page_arguments"]=> bool(false) } } } [8]=> array(6) { ["file"]=> string(76) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php" ["line"]=> int(36) ["function"]=> string(7) "_invoke" ["class"]=> string(15) "CRM_Core_Invoke" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(4) { [0]=> string(7) "civicrm" [1]=> string(7) "payment" [2]=> string(3) "ipn" [3]=> string(1) "3" } } } [9]=> array(6) { ["file"]=> string(78) "/home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module" ["line"]=> int(454) ["function"]=> string(6) "invoke" ["class"]=> string(15) "CRM_Core_Invoke" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(4) { [0]=> string(7) "civicrm" [1]=> string(7) "payment" [2]=> string(3) "ipn" [3]=> string(1) "3" } } } [10]=> array(4) { ["file"]=> string(48) "/home/webadmin/public_html/cmm/includes/menu.inc" ["line"]=> int(527) ["function"]=> string(14) "civicrm_invoke" ["args"]=> array(3) { [0]=> string(7) "payment" [1]=> string(3) "ipn" [2]=> string(1) "3" } } [11]=> array(4) { ["file"]=> string(40) "/home/webadmin/public_html/cmm/index.php" ["line"]=> int(21) ["function"]=> string(27) "menu_execute_active_handler" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL } }`
Backtrace:
`$backTrace = #0 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Error.php(433): CRM_Core_Error::backtrace("backTrace", TRUE) #1 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Core/Invoke.php(39): CRM_Core_Error::handleUnhandledException(Object(CiviCRM_API3_Exception)) #2 /home/webadmin/public_html/cmm/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke((Array:4)) #3 /home/webadmin/public_html/cmm/includes/menu.inc(527): civicrm_invoke("payment", "ipn", "3") #4 /home/webadmin/public_html/cmm/index.php(21): menu_execute_active_handler() #5 {main}`
`$Fatal Error Details = Array ( [callback] => Array ( [0] => CRM_Core_Error [1] => exceptionHandler ) [code] => -5 [message] => DB Error: already exists [mode] => 16 [debug_info] => INSERT INTO `civicrm_contribution` (`contact_id` , `financial_type_id` , `contribution_page_id` , `payment_instrument_id` , `receive_date` , `total_amount` , `fee_amount` , `net_amount` , `trxn_id` , `currency` , `source` , `contribution_recur_id` , `is_test` , `contribution_status_id` , `check_number` ) VALUES ( 3771 , 19 , 13 , 1 , 20201109122653 , 5 , 0.26 , 4.74 , 'in_1HlZSTA7J6ExrhfuzJOwTz9K' , 'GBP' , 'Online Contribution: Membership' , 230 , 0 , 2 , NULL ) [nativecode=1062 ** Duplicate entry 'in_1HlZSTA7J6ExrhfuzJOwTz9K' for key 'UI_contrib_trxn_id'] [type] => DB_Error [user_info] => INSERT INTO `civicrm_contribution` (`contact_id` , `financial_type_id` , `contribution_page_id` , `payment_instrument_id` , `receive_date` , `total_amount` , `fee_amount` , `net_amount` , `trxn_id` , `currency` , `source` , `contribution_recur_id` , `is_test` , `contribution_status_id` , `check_number` ) VALUES ( 3771 , 19 , 13 , 1 , 20201109122653 , 5 , 0.26 , 4.74 , 'in_1HlZSTA7J6ExrhfuzJOwTz9K' , 'GBP' , 'Online Contribution: Membership' , 230 , 0 , 2 , NULL ) [nativecode=1062 ** Duplicate entry 'in_1HlZSTA7J6ExrhfuzJOwTz9K' for key 'UI_contrib_trxn_id'] [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::exceptionHandler prefix="" info="INSERT INTO `civicrm_contribution` (`contact_id` , `financial_type_id` , `contribution_page_id` , `payment_instrument_id` , `receive_date` , `total_amount` , `fee_amount` , `net_amount` , `trxn_id` , `currency` , `source` , `contribution_recur_id` , `is_test` , `contribution_status_id` , `check_number` ) VALUES ( 3771 , 19 , 13 , 1 , 20201109122653 , 5 , 0.26 , 4.74 , 'in_1HlZSTA7J6ExrhfuzJOwTz9K' , 'GBP' , 'Online Contribution: Membership' , 230 , 0 , 2 , NULL ) [nativecode=1062 ** Duplicate entry 'in_1HlZSTA7J6ExrhfuzJOwTz9K' for key 'UI_contrib_trxn_id']"] )`https://lab.civicrm.org/extensions/stripe/-/issues/299Errors with webform submission of one-time gifts when recurring is also an op...2021-05-09T19:33:02ZlcarterErrors with webform submission of one-time gifts when recurring is also an optionCiviCRM 5.33.2
Stripe ext 6.5.7
Contribute.transact 1.4
Payment Shared 0.9.11
Civi Webform 7.x-5.3
Webform 7.x-4.23
A client had been successfully using a webform offering both one-time and recurring gift options with the Authorize paym...CiviCRM 5.33.2
Stripe ext 6.5.7
Contribute.transact 1.4
Payment Shared 0.9.11
Civi Webform 7.x-5.3
Webform 7.x-4.23
A client had been successfully using a webform offering both one-time and recurring gift options with the Authorize payment extension. They switched processors to Stripe this week, and while the recurring gift option continued to work without a problem, one-time giving no longer works. We'd seen this previously with another client on older versions of the extension and CiviCRM and were never able to resolve it. Several error and debug messages are generated but the most pertinent seems to be "paymentIntentID not found." Is there some field we need to set specifically to a certain value in order for the form to work for one-time payments?https://lab.civicrm.org/extensions/stripe/-/issues/101Event registration error "Could not find valid value for id" yet is charging ...2019-10-23T20:03:44ZjjdeltaEvent registration error "Could not find valid value for id" yet is charging customers in StripeHi!
I've been getting a few complaints from some of my clients. They say they get the following error when they submit their registration form:
> Sorry, due to an error, we are unable to fulfill your request at the moment. You may wa...Hi!
I've been getting a few complaints from some of my clients. They say they get the following error when they submit their registration form:
> Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
Could not find valid value for id
But then say they are still being charged the event fee. I think the fees might simply be uncaptured/pre-authorized and not actually successful, but the issue still remains that there is a registration error while stripe still receives a payment request.
As far as I know these errors were not happening prior to the Stripe update.
For other clients they're able to register and everything is fine. I haven't found a link as to when this is happening or why - and, other than several complaints from different countries at different times coming in, I have not been able to reproduce the error.6.2https://lab.civicrm.org/extensions/stripe/-/issues/303Failed recurring payment correctly marked as "Failed", but not updated to "Co...2021-05-10T15:16:51ZAllenShawFailed recurring payment correctly marked as "Failed", but not updated to "Completed" when successfully retried by StripeWe have a recurring contribution which recently encountered a failed payment. In this case Stripe attempted the payment, failed with `'failure_code' => 'expired_card'`, and sent a webhook with `'type' => 'charge.failed'`. CiviCRM correct...We have a recurring contribution which recently encountered a failed payment. In this case Stripe attempted the payment, failed with `'failure_code' => 'expired_card'`, and sent a webhook with `'type' => 'charge.failed'`. CiviCRM correctly recorded this payment with status "Failed".
Three days later, Stripe re-tried the recurring payment, this time successfully. The card was charged, and stripe sent a webhook with `'type' => 'invoice.payment_succeeded'`. This webhook message was logged in civicrm_system_log, but the contribution remains in "Failed" status.
In such a case, shouldn't the Stripe extension update the contribution status to "Completed", or is it understood that this behavior is not supported for some reason?https://lab.civicrm.org/extensions/stripe/-/issues/243False notification for Separate Membership Payment on contribution page2020-09-21T12:27:23ZtapashFalse notification for Separate Membership Payment on contribution pageParticularly ID 33 is a disabled cont page. And never used for memberships.
![Screenshot_2020-08-29_at_18.57.40](/uploads/547f15e9d4990a46acee7dc673c96040/Screenshot_2020-08-29_at_18.57.40.png)Particularly ID 33 is a disabled cont page. And never used for memberships.
![Screenshot_2020-08-29_at_18.57.40](/uploads/547f15e9d4990a46acee7dc673c96040/Screenshot_2020-08-29_at_18.57.40.png)6.5https://lab.civicrm.org/extensions/stripe/-/issues/267Fee amount/net amount not recorded on first contribution in recurring series2021-10-28T19:44:14ZnoahFee amount/net amount not recorded on first contribution in recurring seriesA client is using a standard Contribution Page with the option to contribute monthly. When a new recurring contribution / Stripe subscription is created, the initial contribution succeeds, but the "fee amount" in Civi is 0, which is not ...A client is using a standard Contribution Page with the option to contribute monthly. When a new recurring contribution / Stripe subscription is created, the initial contribution succeeds, but the "fee amount" in Civi is 0, which is not correct.
Existing monthly series (created a month or more ago) are being processed correctly, with the correct figure in "fee amount".
CiviCRM 5.30.0 / Stripe Payment Processor 6.5.1https://lab.civicrm.org/extensions/stripe/-/issues/179Firewall Extension is blocking payment2022-07-01T09:38:56ZtapashFirewall Extension is blocking payment@mattwire Follwoing up from issue https://lab.civicrm.org/extensions/firewall/-/issues/3#note_33673
I have updated to 6.4 b3 and Mjwshared 0.7b2 and still not able to proceed to donation confirmation page with the following error on Chr...@mattwire Follwoing up from issue https://lab.civicrm.org/extensions/firewall/-/issues/3#note_33673
I have updated to 6.4 b3 and Mjwshared 0.7b2 and still not able to proceed to donation confirmation page with the following error on Chrome when firewall extension was enabled.
![Screenshot_2020-03-26_at_08.20.36](/uploads/bf4e175635bcb0037fb9982bd7143f02/Screenshot_2020-03-26_at_08.20.36.png)https://lab.civicrm.org/extensions/stripe/-/issues/192Form Submission - payment uncaptured and form not submitted in CiviCRM2020-06-20T15:57:15ZmkinironsForm Submission - payment uncaptured and form not submitted in CiviCRMA donor just put in a payment through our donor form on our website. The donation is not showing in CiviCRM anywhere, but the payment is listing itself in Stipe, however as 'uncaptured'.
I need to get this fixed as soon as possible as ...A donor just put in a payment through our donor form on our website. The donation is not showing in CiviCRM anywhere, but the payment is listing itself in Stipe, however as 'uncaptured'.
I need to get this fixed as soon as possible as we are taking COVID donations daily. Any help would be appreciated, thank you!
The scenario I need is form submitted and shows in CiviCRM and payment auto processes without manual capture.
Running on CiviCRM 5.24.2 Stripe Payment Processor 6.3.2 Joomla Install
Only change was adding nz.co.fuzion.extrafee extension however when reading the forums it was indicated this should not be causing any issues.
Update: the payment went from unconfirmed to cancelled in just under 3 hours. https://lab.civicrm.org/extensions/stripe/-/issues/228Guest Payment Not Working2020-07-22T14:56:52ZstevenphamGuest Payment Not WorkingHi @mattwire !
I am having problems with Payment when using Stripe.
Everything was fine before I updated to the latest version CiviCRM 5.27.2 and Stripe Payment Processor 6.4.2.
When the user logs in, the payment function works, but th...Hi @mattwire !
I am having problems with Payment when using Stripe.
Everything was fine before I updated to the latest version CiviCRM 5.27.2 and Stripe Payment Processor 6.4.2.
When the user logs in, the payment function works, but the Guest will not be able to donate. It will have an error message:
Error 500: https://www.domain.com/civicrm/stripe/confirm-payment
```
message: Authorization failed
code:
exception: Civi\API\Exception\UnauthorizedException Object
(
[extraParams:API_Exception:private] => Array
(
[error_code] => unauthorized
)
[message:protected] => Authorization failed
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => sites/all/modules/civicrm/Civi/API/Kernel.php
[line:protected] => 227
```
Do you have any ideas on how to fix this problem?https://lab.civicrm.org/extensions/stripe/-/issues/378Hitting enter key with focus on Stripe element has unexpected behaviour.2023-10-02T14:19:59ZBradley TaylorHitting enter key with focus on Stripe element has unexpected behaviour.**Steps to reproduce**
1. Go to a CiviCRM form containing a Stripe form (for example, an event booking form, a contribution form)
2. Fill out any non-Stripe fields
3. Fill out the card number, but not the CVV or expiry fields.
4. With y...**Steps to reproduce**
1. Go to a CiviCRM form containing a Stripe form (for example, an event booking form, a contribution form)
2. Fill out any non-Stripe fields
3. Fill out the card number, but not the CVV or expiry fields.
4. With your focus still on the Stripe card number field hit the enter key.
**Expected behaviour**
An error message should be shown. (i.e. the behaviour which does happen if you click the submit button)
**Actual behaviour**
The form submits (i.e. a page reload) but the form is not processed on the server correctly. If logged in, the error message "Unable to complete payment! Missing paymentIntentID." may be shown. If logged out the most frequent behaviour seems to be that the user is redirected to the homepage, but this varies.
**Environment**
This can be reproduced on any CiviCRM form using the Stripe payment method. I've not tested on Drupal Webforms.
To check this isn't just happening in my environment I reproduced this on https://civicrm.org/civicrm/contribute/transact?reset=1&id=47. However, I'm not sure if this will have left a pending (unpaid) contribution in the database, so I'd be wary about trying this repeatedly on a non-test environment.
**Technical notes**
It looks like Stripe is triggering the submit event on the parent form, and expecting the parent page to catch it. However, the Stripe extension (com.drastikbydesign.stripe/js/civicrm_stripe.js) does not have an event listener on the form's `submit` event.
Currently the Stripe extension has:
```
CRM.payment.submitButtons[i].addEventListener('click', submitButtonClick);
...
CRM.payment.form.addEventListener('keydown', function (keydownEvent) {
if (keydownEvent.code === 'Enter') {
CRM.payment.addDrupalWebformActionElement(this.value);
script.submit(keydownEvent);
}
});
```
It feels like these should be augmented or replaced by a `CRM.payment.form.addEventListener('submit', ...)`. I have confirmed that when the submit occurs the submit event is fired.https://lab.civicrm.org/extensions/stripe/-/issues/203How to manage duplicate contact with active stripe subscription?2020-09-28T10:04:57ZtapashHow to manage duplicate contact with active stripe subscription?I would like to understand how stripe handles the subscription payment when multiple same contacts has active subscription. Obviously to keep data clean I would like to merge the duplicate contacts. In my experience with other payment ga...I would like to understand how stripe handles the subscription payment when multiple same contacts has active subscription. Obviously to keep data clean I would like to merge the duplicate contacts. In my experience with other payment gateway, payment doesnt play nice when contact merged. Is it the case for stripe as well?
I have noticed in previous version of this ext, there used to be metadata as civicrm url in stripe dashboard. That is not the case anymore with the latest version.
Any clarification would be helpful. Thankshttps://lab.civicrm.org/extensions/stripe/-/issues/317Install trouble2021-05-19T21:54:20ZphilstevensInstall troubleI'm trying to install this extension on Civi 5.37.2 (Drupal 7.80) and I get this error:
CREATE TABLE IF NOT EXISTS `civicrm_stripe_customers` ( `id` varchar(255) DEFAULT NULL, `contact_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'FK ID fr...I'm trying to install this extension on Civi 5.37.2 (Drupal 7.80) and I get this error:
CREATE TABLE IF NOT EXISTS `civicrm_stripe_customers` ( `id` varchar(255) DEFAULT NULL, `contact_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'FK ID from civicrm_contact', `processor_id` int(10) DEFAULT NULL COMMENT 'ID from civicrm_payment_processor', UNIQUE KEY `id` (`id`), CONSTRAINT `FK_civicrm_stripe_customers_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE );
ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
Is there a workaround? The DB server is set to UTF8MB4 by default but the site database is showing all tables with DEFAULT CHARSET=utf8https://lab.civicrm.org/extensions/stripe/-/issues/154Invoice object field "status_transitions.paid_at" showing incorrect values2020-06-20T15:59:23Znancyk25Invoice object field "status_transitions.paid_at" showing incorrect valuesThe dates returned from **status_transitions.paid_at** in the invoice object are not up to date - these were for payments made on Dec 2019 with a test card charge. Is this an intentional dummy value or a bug?
The generated invoice PDFs ...The dates returned from **status_transitions.paid_at** in the invoice object are not up to date - these were for payments made on Dec 2019 with a test card charge. Is this an intentional dummy value or a bug?
The generated invoice PDFs are showing up with same values as well (November 19 2019) - would appreciate if someone could look into this!https://lab.civicrm.org/extensions/stripe/-/issues/157Invoice payment page: Error Unable to complete payment! Missing paymentIntentID.2020-06-20T15:53:00ZAlanDixonInvoice payment page: Error Unable to complete payment! Missing paymentIntentID.Drupal 7.69
CiviCRM 5.19.4
Stripe 6.3.1 + MJW 0.6
It's a new install, and I've only tested with the test payment processor credentials.
I can make a test payment on the same contribution page when I don't reference an existing contribu...Drupal 7.69
CiviCRM 5.19.4
Stripe 6.3.1 + MJW 0.6
It's a new install, and I've only tested with the test payment processor credentials.
I can make a test payment on the same contribution page when I don't reference an existing contribution.
I'd be happy to dig into some code if you provide some hints.
I was guessing that you've got a custom form field paymentIntentID that needs to be created/carried along somewhere, and for some reason your usual strategy doesn't work for some reason on invoice payment.
Note: an invoice payment page url is just a regular contribution page + &ccid=[contribution_id] added to the url.
I can try it using a real payment processor credentials if you think that might be the issue.6.4https://lab.civicrm.org/extensions/stripe/-/issues/235Issue with using Checkboxes in price sets2020-09-28T09:55:41ZyosefromanoIssue with using Checkboxes in price setshttps://lab.civicrm.org/extensions/stripe/-/issues/259Line item duplicated on recurring contributions2020-09-21T12:38:19ZandyburnsLine item duplicated on recurring contributionsWhen submitting a recurring contribution (monthly), two CiviCRM line items show. I tested on both a monthly member and monthly contribution.
![image](/uploads/b91f822dc39cca75cbc0b5fcd3761264/image.png)
![Capture](/uploads/f0ad4d0a7725...When submitting a recurring contribution (monthly), two CiviCRM line items show. I tested on both a monthly member and monthly contribution.
![image](/uploads/b91f822dc39cca75cbc0b5fcd3761264/image.png)
![Capture](/uploads/f0ad4d0a772534a006161724086298ca/Capture.PNG)
The donor receives the same CiviCRM email receipt twice.
The problem does not occur for one-time donations.6.5