Stripe issueshttps://lab.civicrm.org/extensions/stripe/-/issues2023-10-02T14:30:16Zhttps://lab.civicrm.org/extensions/stripe/-/issues/421Please help! Uncaught TypeError: CRM.payment is undefined No donations workin...2023-10-02T14:30:16ZHLyle1965Please help! Uncaught TypeError: CRM.payment is undefined No donations working on CiviCRM Contribute page!I am still waiting for help with this issue!!!!I am still waiting for help with this issue!!!!https://lab.civicrm.org/extensions/stripe/-/issues/420Contribution and transactions dates on recurrent intents2023-03-14T11:22:04ZGhost UserContribution and transactions dates on recurrent intents### The problem
We had a problem regarding an automatically recurring payment.
The contribution in CiviCRM was created at **december 20th** but the payment wasn't completed. The next day Stripe tried to complete it, but was unsuccesfull...### The problem
We had a problem regarding an automatically recurring payment.
The contribution in CiviCRM was created at **december 20th** but the payment wasn't completed. The next day Stripe tried to complete it, but was unsuccesfull. Later on tried again and it was also a fail.
During the next 4 days tried to complete it, and it was in the **15th day** that finally was able to do it. But what happened? The contribution was created at december 20th but completed at january 4th and Stripe marked as completed the contribution without checking the date that was completed. So the contribution is shown as completed in december 20th (both contribution and transaction).
![image](/uploads/17fe74fc67f4f0576dda6d2902c6c90f/image.png)
### Expected behavior
The contribution should be updated to completed and keep the initial date, but the created transaction should be put the date in which was completed, as the image below.
![image](/uploads/4d83533a0e8663a5764b19d6522a2ec0/image.png)
* CiviCRM 5.54
* Stripe Payment Processor 6.7.10
* Contribution.Transact alternative API implementation 1.5.1
* Payment Shared 1.2.8https://lab.civicrm.org/extensions/stripe/-/issues/419Missing paymentIntentID CiviCrm Contribution page wordpress2023-09-22T00:39:29ZHLyle1965Missing paymentIntentID CiviCrm Contribution page wordpressdebugging shows errors in https://hungeractionnys.org/wp-content/uploads/civicrm/extend/mjwshared/js/crm.payment.js?r=vSo3uen_US
https://hungeractionnys.org/wp-content/uploads/civicrm/persist/contribute/dyn/civicrmStripe.899cb6b0a7074ab0...debugging shows errors in https://hungeractionnys.org/wp-content/uploads/civicrm/extend/mjwshared/js/crm.payment.js?r=vSo3uen_US
https://hungeractionnys.org/wp-content/uploads/civicrm/persist/contribute/dyn/civicrmStripe.899cb6b0a7074ab0c5543adec726b734.js
and
https://hungeractionnys.org/wp-content/uploads/civicrm/persist/contribute/dyn/crm-l10n.4dab7fa4feebc6879f52a74cd23421d3.js
Uncaught SyntaxError: missing ) after argument list
and
Uncaught TypeError: CRM.payment is undefined
these errors stared last month. Is there a bug in the latest extension update? I have 6.7.14 Stripe Payment Processor on CiviCRM 5.59.1https://lab.civicrm.org/extensions/stripe/-/issues/418This customer has no attached payment source or default payment method. Pleas...2023-03-08T17:42:32ZzskecskesThis customer has no attached payment source or default payment method. Please consider adding a default payment method.Hello!
We have problems with Stripe Subscriptions. One time payments are fine but creating subscriptions falls 9 out of 10 with the following error:
This customer has no attached payment source or default payment method. Please conside...Hello!
We have problems with Stripe Subscriptions. One time payments are fine but creating subscriptions falls 9 out of 10 with the following error:
This customer has no attached payment source or default payment method. Please consider adding a default payment method. For more information, visit https://stripe.com/docs/billing/subscriptions/payment-methods-setting#payment-method-priority.
Stripe dashboard:
400 ERR POST /v1/subscriptions 1:20:27 PM
Response body
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "This customer has no attached payment source or default payment method. Please consider adding a default payment method. For more information, visit https://stripe.com/docs/billing/subscriptions/payment-methods-setting#payment-method-priority.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_FzvhBX6m3D3BiX?t=1676290827",
"type": "invalid_request_error"
}
}
browser console:
2023-03-01T12:52:09.373Z stripe: No available paymentMethods for paymentRequest2023-03-01T12:52:09.373Z stripe: No available paymentMethods for paymentRequest
How could I set the default payment method?
stack:
- Drupal 9.5.2
- CiviCRM 5.57.2
- webform_civicrm 6.2.3
- Stripe Payment Processor 6.7.14
- Contribution.Transact alternative API implementation 1.5.1
- Payment Shared 1.2.11
- Firewall 1.5.8
Thankshttps://lab.civicrm.org/extensions/stripe/-/issues/417Database deadlock leaves transaction in pending state2023-10-02T14:24:08ZaxaakDatabase deadlock leaves transaction in pending stateMany thanks for your work on this extension.
CiviCRM 5.45.6
Payment Shared: Version 1.2.2
Stripe Payment Processor: Version 6.7.1
Variable Recur Payments: Version 1.0
Wordpress 5.9.5
A user successfully pays for a recurring membershi...Many thanks for your work on this extension.
CiviCRM 5.45.6
Payment Shared: Version 1.2.2
Stripe Payment Processor: Version 6.7.1
Variable Recur Payments: Version 1.0
Wordpress 5.9.5
A user successfully pays for a recurring membership, all webhooks fire OK and get a 200 but the contribution remains in Pending state.
ConfigAndLog shows a DB deadlock at the same timestamp followed by an error `[error] MJWIPNTrait call to repeattransaction failed: Expected one Contribution but found 0; params:`.
Log file excerpt:
```
Array
(
[civi.tag] => deprecated
)
Feb 14 21:45:09 [error] $Fatal Error Details = Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => exceptionHandler
)
[code] => -31
[message] => DB Error: deadlock
[mode] => 16
[debug_info] => INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id` , `subject` , `activity_date_time` , `status_id` , `priority_id` , `is_test` ) VALUES ( 137930 , 6 , '£ 52.00 - Online
Contribution: Join the XXX' , 20230214214500 , 2 , 2 , 0 ) [nativecode=1213 ** Deadlock found when trying to get lock; try restarting transaction]
[type] => DB_Error
[user_info] => INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id` , `subject` , `activity_date_time` , `status_id` , `priority_id` , `is_test` ) VALUES ( 137930 , 6 , '£ 52.00 - Online
Contribution: Join the XXX' , 20230214214500 , 2 , 2 , 0 ) [nativecode=1213 ** Deadlock found when trying to get lock; try restarting transaction]
[to_string] => [db_error: message="DB Error: deadlock" code=-31 mode=callback callback=CRM_Core_Error::exceptionHandler prefix="" info="INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id`
, `subject` , `activity_date_time` , `status_id` , `priority_id` , `is_test` ) VALUES ( 137930 , 6 , '£ 52.00 - Online Contribution: Join the XXX' , 20230214214500 , 2 , 2 , 0 ) [nativecode=1213 ** Deadlo
ck found when trying to get lock; try restarting transaction]"]
)
Feb 14 21:45:09 [debug] $backTrace = #0 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(942): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/pear-core-minimal/src/PEAR.php(922): CRM_Core_Error::exceptionHandler(Object(DB_Error))
#2 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/db/DB.php(997): PEAR_Error->__construct("DB Error: deadlock", -31, 16, (Array:2), "INSERT INTO `civicrm_activity` (`sour
ce_record_id` , `activity_type_id` , `su...")
#3 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/pear-core-minimal/src/PEAR.php(575): DB_Error->__construct(-31, 16, (Array:2), "INSERT INTO `civicrm_activity` (`source_
record_id` , `activity_type_id` , `su...")
#4 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/pear-core-minimal/src/PEAR.php(223): PEAR::_raiseError(Object(DB_mysqli), NULL, -31, 16, (Array:2), "INSERT INTO `civicr
m_activity` (`source_record_id` , `activity_type_id` , `su...", "DB_Error", TRUE)
#5 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/db/DB/common.php(1928): PEAR->__call("raiseError", (Array:7))
#6 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/db/DB/mysqli.php(936): DB_common->raiseError(-31, NULL, NULL, "INSERT INTO `civicrm_activity` (`source_record_id` , `act
ivity_type_id` , `su...", "1213 ** Deadlock found when trying to get lock; try restarting transaction")
#7 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/db/DB/mysqli.php(406): DB_mysqli->mysqliRaiseError()
#8 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/vendor/pear/db/DB/common.php(1234): DB_mysqli->simpleQuery("INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id`
, `su...")
#9 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php(2696): DB_common->query("INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id` , `su...
")
#10 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php(1245): DB_DataObject->_query("INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id` ,
`su...")
#11 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php(656): DB_DataObject->insert()
#12 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Activity/BAO/Activity.php(321): CRM_Core_DAO->save()
#13 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php(163): CRM_Activity_BAO_Activity::create((Array:14))
#14 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/DAOSaveAction.php(35): Civi\Api4\Generic\DAOSaveAction->writeObjects((Array:1))
#15 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Api4/Provider/ActionObjectProvider.php(68): Civi\Api4\Generic\DAOSaveAction->_run(Object(Civi\Api4\Generic\Result))
#16 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\Api4\Provider\ActionObjectProvider->invoke(Object(Civi\Api4\Generic\DAOSaveAction))
#17 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractAction.php(234): Civi\API\Kernel->runRequest(Object(Civi\Api4\Generic\DAOSaveAction))
#18 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/Contribution.php(562): Civi\Api4\Generic\AbstractAction->execute()
#19 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/v3/utils.php(1314): CRM_Contribute_BAO_Contribution::create((Array:24), (Array:1))
#20 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/v3/Contribution.php(87): _civicrm_api3_basic_create("CRM_Contribute_BAO_Contribution", (Array:24), "Contribution")
#21 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_contribution_create((Array:24))
#22 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\API\Provider\MagicFunctionProvider->invoke((Array:8))
#23 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest((Array:8))
#24 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/api.php(132): Civi\API\Kernel->runSafe("Contribution", "create", (Array:12))
#25 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/Contribution.php(4015): civicrm_api3("Contribution", "create", (Array:12))
#26 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/v3/Contribution.php(687): CRM_Contribute_BAO_Contribution::completeOrder((Array:8), "7381", "137930", NULL)
#27 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/v3/Contribution.php(503): _ipn_process_transaction((Array:9), Object(CRM_Contribute_BAO_Contribution), (Array:8), (Array:11))
#28 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_contribution_completetransaction((Array:9))
#29 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\API\Provider\MagicFunctionProvider->invoke((Array:8))
#30 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest((Array:8))
#31 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/api.php(132): Civi\API\Kernel->runSafe("contribution", "completetransaction", (Array:9))
#32 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(2566): civicrm_api3("contribution", "completetransaction", (Array:9))
#33 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(1730): CRM_Contribute_Form_Contribution_Confirm->completeTransaction((Array:4), 137930
)
#34 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(1466): CRM_Contribute_Form_Contribution_Confirm->postProcessMembership((Array:57), "16
7422", Object(CRM_Contribute_Form_Contribution_Confirm), (Array:43), (Array:0), (Array:0), (Array:34), (Array:1), TRUE, NULL, FALSE, "2", (Array:1))
#35 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(2524): CRM_Contribute_Form_Contribution_Confirm->processMembership((Array:46), "167422
", (Array:0), (Array:0), (Array:43), (Array:1))
#36 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(2369): CRM_Contribute_Form_Contribution_Confirm->doMembershipProcessing("167422", (Arr
ay:46), (Array:43), (Array:1))
#37 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(856): CRM_Contribute_Form_Contribution_Confirm->processFormSubmission("167422")
#38 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(565): CRM_Contribute_Form_Contribution_Confirm->postProcess()
#39 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form->mainProcess()
#40 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine->perform(Object(CRM_Contribute_Form_Contribution_Confirm), "next", "N
ext")
#41 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Contribute_Form_Contribution_Confir
m), "next")
#42 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_Contribution_Confirm), "next")
#43 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(353): HTML_QuickForm_Page->handle("next")
#44 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(319): CRM_Core_Controller->run((Array:3), NULL)
#45 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:15))
#46 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
#47 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm.php(1169): CRM_Core_Invoke::invoke((Array:3))
#48 /home/path/to/wordpress/wp-content/plugins/civicrm/includes/civicrm.basepage.php(366): CiviCRM_For_WordPress->invoke()
#49 /home/path/to/wordpress/wp-includes/class-wp-hook.php(307): CiviCRM_For_WordPress_Basepage->basepage_handler(Object(WP))
#50 /home/path/to/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, (Array:1))
#51 /home/path/to/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action((Array:1))
#52 /home/path/to/wordpress/wp-includes/class-wp.php(771): do_action_ref_array("wp", (Array:1))
#53 /home/path/to/wordpress/wp-includes/functions.php(1310): WP->main("")
#54 /home/path/to/wordpress/wp-blog-header.php(16): wp()
#55 /home/path/to/wordpress/index.php(17): require("/home/path/to/wordpress/wp-blog-header.php")
#56 {main}
Feb 14 21:45:09 [info] Retrying after Database deadlock encountered hit on attempt 1 at query : INSERT INTO `civicrm_activity` (`source_record_id` , `activity_type_id` , `subject` , `activity_date_time` , `stat
us_id` , `priority_id` , `is_test` ) VALUES ( 137930 , 6 , '£ 52.00 - Online Contribution: Join the XXX' , 20230214214500 , 2 , 2 , 0 )
Feb 14 21:45:09 [info] Contribution 137930 updated successfully
Feb 14 21:45:10 [info] Contribution 137930 Receipt sent
Feb 14 21:45:11 [debug] Credit/Debit cardsNo matching contributions for event evt_3MbWJADIWplkgKtP07psenWL
Feb 14 21:45:11 [debug] Credit/Debit cardsNo matching contributions for event evt_1MbWJEDIWplkgKtPbko2MedY
Feb 14 21:45:11 [error] MJWIPNTrait call to repeattransaction failed: Expected one Contribution but found 0; params: Array
(
[contribution_recur_id] => 7381
[contribution_status_id] => 2
[receive_date] => 20230214214504
[order_reference] => in_1MbWJADIWplkgKtP9AevkaXXGS
[trxn_id] => in_1MbWJADIWplkgKtP9AevkaXXGS
[total_amount] => 52
[fee_amount] => 0.93
[is_email_receipt] =>
)
Feb 14 21:45:11 [error] StripeIPN: processWebhookEvent failed. EventID: evt_1MbWJEDIWplkgKtPbko2MedY : MJWIPNTrait call to repeattransaction failed: Expected one Contribution but found 0; params: Array
(
[contribution_recur_id] => 7381
[contribution_status_id] => 2
[receive_date] => 20230214214504
[order_reference] => in_1MbWJADIWplkgKtP9AevkaXXGS
[trxn_id] => in_1MbWJADIWplkgKtP9AevkaXXGS
[total_amount] => 52
[fee_amount] => 0.93
[is_email_receipt] =>
)
#0 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(654): CRM_Core_Payment_StripeIPN->repeatContribution()
#1 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(462): CRM_Core_Payment_StripeIPN->createNextContributionForRecur(
)
#2 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(358): CRM_Core_Payment_StripeIPN->processEventType()
#3 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(320): CRM_Core_Payment_StripeIPN->processWebhookEvent()
#4 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/Stripe.php(1247): CRM_Core_Payment_StripeIPN->onReceiveWebhook()
#5 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment.php(1628): CRM_Core_Payment_Stripe->handlePaymentNotification()
#6 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Payment.php(1521): CRM_Core_Payment::handlePaymentMethod()
#7 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(285): CRM_Core_Payment::handleIPN()
#8 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem()
#9 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke()
#10 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm.php(1169): CRM_Core_Invoke::invoke()
#11 /home/path/to/wordpress/wp-content/plugins/civicrm/includes/civicrm.basepage.php(366): CiviCRM_For_WordPress->invoke()
#12 /home/path/to/wordpress/wp-includes/class-wp-hook.php(307): CiviCRM_For_WordPress_Basepage->basepage_handler()
#13 /home/path/to/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#14 /home/path/to/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action()
#15 /home/path/to/wordpress/wp-includes/class-wp.php(771): do_action_ref_array()
#16 /home/path/to/wordpress/wp-includes/functions.php(1310): WP->main()
#17 /home/path/to/wordpress/wp-blog-header.php(16): wp()
#18 /home/path/to/wordpress/index.php(17): require('/home/trail_liv...')
#19 {main}
Feb 14 21:50:06 [debug] Credit/Debit cardsNo matching contributions for event evt_1MbWJDDIWplkgKtPDAtEXmXX59
Feb 14 21:50:06 [error] MJWIPNTrait call to repeattransaction failed: Expected one Contribution but found 0; params: Array
(
[contribution_recur_id] => 7381
[contribution_status_id] => 2
[receive_date] => 20230214214504
[order_reference] => in_1MbWJADIWplkgKtP9AevkaXXGS
[trxn_id] => in_1MbWJADIWplkgKtP9AevkaXXGS
[total_amount] => 52
[fee_amount] => 0.93
[is_email_receipt] =>
)
Feb 14 21:50:06 [error] StripeIPN: processWebhookEvent failed. EventID: evt_1MbWJDDIWplkgKtPDAtEXmXX59 : MJWIPNTrait call to repeattransaction failed: Expected one Contribution but found 0; params: Array
(
[contribution_recur_id] => 7381
[contribution_status_id] => 2
[receive_date] => 20230214214504
[order_reference] => in_1MbWJADIWplkgKtP9AevkaXXGS
[trxn_id] => in_1MbWJADIWplkgKtP9AevkaXXGS
[total_amount] => 52
[fee_amount] => 0.93
[is_email_receipt] =>
)
#0 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(654): CRM_Core_Payment_StripeIPN->repeatContribution()
#1 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(430): CRM_Core_Payment_StripeIPN->createNextContributionForRecur(
)
#2 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(358): CRM_Core_Payment_StripeIPN->processEventType()
#3 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/StripeIPN.php(344): CRM_Core_Payment_StripeIPN->processWebhookEvent()
#4 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/com.drastikbydesign.stripe/CRM/Core/Payment/Stripe.php(1317): CRM_Core_Payment_StripeIPN->processQueuedWebhookEvent()
#5 /home/path/to/wordpress/wp-content/plugins/files/civicrm/extensions/mjwshared/api/v3/Job/ProcessPaymentprocessorWebhooks.php(98): CRM_Core_Payment_Stripe->processWebhookEvent()
#6 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_job_process_paymentprocessor_webhooks()
#7 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\API\Provider\MagicFunctionProvider->invoke()
#8 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest()
#9 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/api.php(22): Civi\API\Kernel->runSafe()
#10 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/JobManager.php(131): civicrm_api()
#11 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/JobManager.php(63): CRM_Core_JobManager->executeJob()
#12 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/v3/Job.php(118): CRM_Core_JobManager->execute()
#13 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_job_execute()
#14 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(149): Civi\API\Provider\MagicFunctionProvider->invoke()
#15 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest()
#16 /home/path/to/wordpress/wp-content/plugins/civicrm/civicrm/api/api.php(22): Civi\API\Kernel->runSafe()
#17 /home/path/to/wordpress/wp-content/plugins/civicrm/wp-cli/civicrm.php(201): civicrm_api()
#18 /home/path/to/wordpress/wp-content/plugins/civicrm/wp-cli/civicrm.php(152): CiviCRM_Command->api()
#19 [internal function]: CiviCRM_Command->__invoke()
#20 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#21 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#22 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
#23 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(399): WP_CLI\Dispatcher\Subcommand->invoke()
#24 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(422): WP_CLI\Runner->run_command()
#25 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1194): WP_CLI\Runner->run_command_and_exit()
#26 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
#27 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(77): WP_CLI\Bootstrap\LaunchRunner->process()
#28 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
#29 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#30 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#31 {main}
```https://lab.civicrm.org/extensions/stripe/-/issues/415Drupal 10: Payment Submission fails with a 500 service unavailable2023-10-02T14:25:28ZjitendraDrupal 10: Payment Submission fails with a 500 service unavailableNoticed this while executing Stripe test for Drupal 10.
To replicate -
- Install Stripe extension on Drupal 10
- Configure it on a webform (Also replicates on civi forms)
- Submit the webform with Stripe chosen as the payment processor...Noticed this while executing Stripe test for Drupal 10.
To replicate -
- Install Stripe extension on Drupal 10
- Configure it on a webform (Also replicates on civi forms)
- Submit the webform with Stripe chosen as the payment processor.
![image](/uploads/25f52bf99ff811090d8daca30fa20ad8/image.png)
Log displays the following error -
```
The website encountered an unexpected error. Please try again later.
<em class="placeholder">Error</em>: Class "Symfony\Component\EventDispatcher\Event" not found in <em class="placeholder">include()</em> (line <em class="placeholder">27</em> of <em class="placeholder">sites/default/files/civicrm/ext/com.drastikbydesign.stripe/Civi/Stripe/Event/AuthorizeEvent.php</em>).
<pre class="backtrace">Composer\Autoload\includeFile('/Users/jitendra/www/drupal10/web/sites/default/files/civicrm/ext/com.drastikbydesign.stripe/Civi/Stripe/Event/AuthorizeEvent.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Civi\Stripe\Event\AuthorizeEvent') (Line: 165)
civicrm_api3_stripe_paymentintent_process(Array) (Line: 89)
Civi\API\Provider\MagicFunctionProvider->invoke(Array) (Line: 158)
Civi\API\Kernel->runRequest(Array) (Line: 81)
Civi\API\Kernel->runSafe('StripePaymentintent', 'process', Array) (Line: 22)
civicrm_api('StripePaymentintent', 'process', Array) (Line: 289)
CRM_Utils_REST::process(Array, Array) (Line: 534)
CRM_Utils_REST::ajax() (Line: 285)
CRM_Core_Invoke::runItem(Array) (Line: 69)
CRM_Core_Invoke::_invoke(Array) (Line: 36)
CRM_Core_Invoke::invoke(Array) (Line: 88)
Drupal\civicrm\Civicrm->invoke(Array) (Line: 80)
Drupal\civicrm\Controller\CivicrmController->main(Array, '')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 681)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
```
Seems like this is due to `Symfony\Component\EventDispatcher\Event` being replaced by `Symfony\Contracts\EventDispatcher\Event` - https://www.drupal.org/node/3159012
So I think we just need to replace the usage of the above with the following?
use Drupal\Component\EventDispatcher\Event;https://lab.civicrm.org/extensions/stripe/-/issues/414Refund UX - make it clearer if it's connected or not to Stripe2023-02-03T14:30:42ZsamuelsovRefund UX - make it clearer if it's connected or not to StripeThere is 2 ways to refund and it's not clear from a user perspective what is what :
![ksnip_20230201-144002](/uploads/33974ef3ac90d94793dbb8e176ce1ad6/ksnip_20230201-144002.png)
To avoid user mistakes, I think that we should at least hi...There is 2 ways to refund and it's not clear from a user perspective what is what :
![ksnip_20230201-144002](/uploads/33974ef3ac90d94793dbb8e176ce1ad6/ksnip_20230201-144002.png)
To avoid user mistakes, I think that we should at least hide the "Record refund" link if the payment was done using Stripe.
Not sure if it's a Stripe specific problem. I can move it if necessary.https://lab.civicrm.org/extensions/stripe/-/issues/413Contribution stuck in pending (payment says "Completed"); Stripe.ipn api has ...2023-01-26T21:06:06ZAllenShawContribution stuck in pending (payment says "Completed"); Stripe.ipn api has no effectThis is an intermittent problem that affects some contributions but not all, despite their apparent similarities.
Possibly related or duplicate issues:
- "Contribution status remains pending - line item is completed" https://lab.civicrm...This is an intermittent problem that affects some contributions but not all, despite their apparent similarities.
Possibly related or duplicate issues:
- "Contribution status remains pending - line item is completed" https://lab.civicrm.org/extensions/stripe/-/issues/274
- "Recurring Contribution marked as 'Pending (Incomplete Transaction)'" https://lab.civicrm.org/extensions/stripe/-/issues/308
Details:
This issue is affecting several contributions, some which are payments triggered by Stripe.com on existing subscriptions, others which are one-time contributions.
I present here a single case: a payment triggered by Stripe.com on an existing subscription.
I see that some payments of this type (e.g. one from Jones https://example.org/civicrm/contact/view/contribution?reset=1&id=167309&cid=15251&action=view) have this problem, while others (e.g. one from Smith https://example.org/civicrm/contact/view/contribution?reset=1&id=167315&cid=34975&action=view) do not.
Both contributions have a single payment record (this is normal) but:
- for Jones, the payment record has a status of Completed while the contribution itself still says 'Pending : Incomplete Transaction'.
- for Smit, both the payment and the contribution have a status of Completed.
Both payments are virtually identical:
- Stripe triggered a payment on an existing subscription and notified civicrm via a 'customer.subscription.updated' event.
- The webhook was received by civicrm in a timely fashion (no failures on stripe webhook log, and civicrm log shows the webhook was received immediately).
- Webhook payloads are meaningfully identical (differing only in amount, created date, etc.)
I can provide the webhook payloads for both upon request.
In similar situations (stripe payment processed but civicrm extension stuck in pending), the recommendation has been to replay the webhook for Jones using the Stripe.ipn api, but this has no visible effect on Jones's contribution:
`cv api Stripe.ipn suppressreceipt=1 id=627786`
Anyone have a recommendation?
Otherwise, we could proceed with a deeper debugging process, which is labor-intensive — but at least we have a clear question about a specific case: "Why is the stripe.ipn api not correcting the status on Jones's contribution?"https://lab.civicrm.org/extensions/stripe/-/issues/412Processing Credit Card information fails if user is not logged in2023-01-21T23:01:46ZdwightmartinoProcessing Credit Card information fails if user is not logged inI have an events registration page which is failing once the credit card information is submitted for guests, but not logged in Admins.
Conditions: When the user is logged in (authenticated and Admin), credit card submissions on Verify...I have an events registration page which is failing once the credit card information is submitted for guests, but not logged in Admins.
Conditions: When the user is logged in (authenticated and Admin), credit card submissions on Verify take you to the Review screen successfully. Confirmed event registrations are also successfully showing up in the participants list, and money is collected.
Conditions: When the user is not logged in (guest), credit card submissions fail after hitting verify and authentication is complete, showing the red "Error" notice.
URL: https://icelanddc.com/testing-page-for-event-registration/
All extensions are up to date, and the CiviCRM install is updated as well. Is there any reason why guests cannot register for events without being logged into wordpress? Is there a setting to change this?
I have tested this with all other plugins deactivated, and in different themes. The results are the same.
Some users are also reporting on initial pageload for the payment page the following modal dialog "Could not load payment element - Is there a problem with your network connection".https://lab.civicrm.org/extensions/stripe/-/issues/4113D secure page shows 0 amount to pay2023-07-03T07:37:38ZPradeep Nayakpradpnayak@gmail.com3D secure page shows 0 amount to payAt the 3D secure/auth stage, the dialogue box that Stripe shows gives a £0.00 amount to be charged (rather than the £100 it should). It still charges the £100 correctly.
The £100 payment is successfully recorded in Civi and stripe gat...At the 3D secure/auth stage, the dialogue box that Stripe shows gives a £0.00 amount to be charged (rather than the £100 it should). It still charges the £100 correctly.
The £100 payment is successfully recorded in Civi and stripe gateway but it confuses the user when they see on the 3D secure page with £0 amount and not having clue what amount they will be charged actually.
Note: This happens only for recurring
![Screen_Shot_2023-01-13_at_11.14.57](/uploads/e5f5c7a9a2ba80af77b74e9f69843760/Screen_Shot_2023-01-13_at_11.14.57.png)https://lab.civicrm.org/extensions/stripe/-/issues/410Retrieve customer failure: id vs customer_id confusion2023-01-12T13:57:10Zaydunsaidan.saunders@squiffle.ukRetrieve customer failure: id vs customer_id confusionCreating a payment for a contact with an existing customer id can result in failure because of a confusion between the `id` and `customer_id` fields in the `civicrm_stripe_customer` table.Creating a payment for a contact with an existing customer id can result in failure because of a confusion between the `id` and `customer_id` fields in the `civicrm_stripe_customer` table.https://lab.civicrm.org/extensions/stripe/-/issues/409CiviCRM URL in Stripe Dashboard does not work2023-10-02T14:26:53Zben_fairlessCiviCRM URL in Stripe Dashboard does not workCiviCRM 5.57.0
Stripe Plug-in 6.7.14
API 2022-11-15
When a new customer is created the URL is configured as https://www.example.com/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fcontact%2Fview&amp;reset=1&amp;cid=13673
When you clic...CiviCRM 5.57.0
Stripe Plug-in 6.7.14
API 2022-11-15
When a new customer is created the URL is configured as https://www.example.com/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fcontact%2Fview&reset=1&cid=13673
When you click on this URL it doesn’t take you to the contact, just to the homepage of CiviCRM.https://lab.civicrm.org/extensions/stripe/-/issues/408Paid multi-participant registration failed with 3D Secure2023-09-15T14:24:23ZdmunioPaid multi-participant registration failed with 3D SecureThis issue (#387) was fixed in version 6.7.9, but it fails when the card asks for 3D Secure validation.
Drupal 7, CiviCRM 5.51.3, Stripe 6.7.14, Payment shared 1.2.10This issue (#387) was fixed in version 6.7.9, but it fails when the card asks for 3D Secure validation.
Drupal 7, CiviCRM 5.51.3, Stripe 6.7.14, Payment shared 1.2.10https://lab.civicrm.org/extensions/stripe/-/issues/407Suggestion: warn if multiple webhooks2023-10-02T14:26:30Zaydunsaidan.saunders@squiffle.ukSuggestion: warn if multiple webhooksA system check warns if the expected webhook is not found but does not warn if unexpected webhooks are found.
On a system I recently looked at, it had 5 webhooks including one to the test processor - caused by changes in hostname, enabl...A system check warns if the expected webhook is not found but does not warn if unexpected webhooks are found.
On a system I recently looked at, it had 5 webhooks including one to the test processor - caused by changes in hostname, enabling clean-urls etc. This caused confusion in the logs and may explain other failures being experienced.
So the suggestion is to add another system check job warning if there webhooks configured other than the expected one. The system check can be hidden on any system that actually wants multiple webhooks.https://lab.civicrm.org/extensions/stripe/-/issues/406Updating subscription in Stripe should edit amount in CiviCRM2022-12-19T17:53:31ZBradley TaylorUpdating subscription in Stripe should edit amount in CiviCRMWe have a client who has edited a number of subscriptions within Stripe, to change the amount to be charged in each instalment. I.e. a subscription was setup at £25, and then changed in Stripe to £50.
Currently there is no way to chang...We have a client who has edited a number of subscriptions within Stripe, to change the amount to be charged in each instalment. I.e. a subscription was setup at £25, and then changed in Stripe to £50.
Currently there is no way to change the subscription amount in the CiviCRM UI, so we are updating the `amount` on the recurring subscription via API4.
Would it be possible to add a webhook listener for subscription change events, to automatically update the amount in CiviCRM?
https://lab.civicrm.org/extensions/stripe/-/issues/14 indicates that this functionality already exists, but I can't see evidence of it in the code. I wonder if the functionality was removed at some point (whether deliberately or by mistake).https://lab.civicrm.org/extensions/stripe/-/issues/405mitigation of card-testing fraud2023-03-20T09:57:25Zhescomitigation of card-testing fraudOne of my clients is seeing their stripe account inundated with what stripe is describing as card testing transactions, which are being rejected as fraudulent. Stripe has asked us to implement a mitigation plan.
I have reviewed the g...One of my clients is seeing their stripe account inundated with what stripe is describing as card testing transactions, which are being rejected as fraudulent. Stripe has asked us to implement a mitigation plan.
I have reviewed the guidance provided by stripe at:
https://stripe.com/docs/disputes/prevention/card-testing
https://stripe.com/docs/disputes/prevention/advanced-fraud-detection
I write to ask what might already be built into the stripe extension which would help our sites comply with this guidance, and if appropriate to make a feature request that future versions of the extension be extended to facilitate compliance with this guidance.
Specifically, I wonder if:
(1) advancedFraudSignals is for some reason being disabled?
(2) what exists to facilitate integration with captcha verification?
(3) how best the conveyance to stripe of the (a) IP address, (b) customer email, (c) customer name, and (d) billing address might be enabled?
(4) if the IP address might be disabled when the connection between the end user and the server is proxied and X-Forwarded-For headers are not enabled?
(5) if some mechanism for rate-limiting interactions with the stripe API might be enabled in the extension's configuration interface?
Any help would be appreciated.
Thanks,
-- Hugh Escohttps://lab.civicrm.org/extensions/stripe/-/issues/404Not able to create new recurring payments after upgrade to 6.7.132023-01-05T13:02:11ZKurund JalmiNot able to create new recurring payments after upgrade to 6.7.13I am trying to create annual recurring of £20.
Errors in the logs:
```
[error] plan_retrieve: Stripe\Exception\InvalidRequestException: No such plan: 'every-1-year-2000-gbp-test'
```
Error displayed on the screen:
```
You passed an e...I am trying to create annual recurring of £20.
Errors in the logs:
```
[error] plan_retrieve: Stripe\Exception\InvalidRequestException: No such plan: 'every-1-year-2000-gbp-test'
```
Error displayed on the screen:
```
You passed an empty string for 'plan'. We assume empty values are an attempt to unset a parameter; however 'plan' cannot be unset. You should remove 'plan' from your request or supply a non-empty value.
```
The problem is with the new plan creation. The code relied on error code for creation of new plan. There was some restructuring to error handling in the recent version that resulted in this regression.Kurund JalmiKurund Jalmihttps://lab.civicrm.org/extensions/stripe/-/issues/403Problem trying to import subscriptions: Mandatory key missing2022-12-12T17:14:35ZUpperholmeProblem trying to import subscriptions: Mandatory key missingHi
I'm trying to use the APIv3 scripts to import customers, subscriptions and charges from the Stripe account (Stripe API version 2020-08-27)
Stripe.importallcustomers appeared to work well. So I then moved on to see if I could import al...Hi
I'm trying to use the APIv3 scripts to import customers, subscriptions and charges from the Stripe account (Stripe API version 2020-08-27)
Stripe.importallcustomers appeared to work well. So I then moved on to see if I could import all of the subscriptions:
`cv api Stripe.importallsubscriptions ppid=1`
produced
`{
"fields": [
"subscription",
"ppid"
],
"error_code": "mandatory_missing",
"entity": "Stripe",
"action": "importallsubscriptions",
"is_error": 1,
"error_message": "Mandatory key(s) missing from params array: subscription, ppid"
}`
suggesting it needs a subscription parameter?
Not sure what to provide?https://lab.civicrm.org/extensions/stripe/-/issues/402Stripe does not appear in list of Payment Processor Types2023-10-02T14:27:23ZcbpqStripe does not appear in list of Payment Processor TypesI am trying to configure Stripe in CiviCRM (using WordPress). I installed it through the extensions page along with MJWShared. However, when I try to create a new Payment Processor, Stripe does not appear in the first drop-down as a Paym...I am trying to configure Stripe in CiviCRM (using WordPress). I installed it through the extensions page along with MJWShared. However, when I try to create a new Payment Processor, Stripe does not appear in the first drop-down as a Payment Processor Type. I checked the database and don't see any entries for Stripe in `civicrm_payment_processor_type`. I tried reinstalling both extensions which did not change anything. Am I doing something wrong? Is it possible that something went wrong during the installation?https://lab.civicrm.org/extensions/stripe/-/issues/400Fatal error: Stripe\Exception\InvalidRequestException: "You passed an empty s...2022-12-08T16:18:09ZKurund JalmiFatal error: Stripe\Exception\InvalidRequestException: "You passed an empty string for 'plan'. We assume empty values are an attempt to unset a parameter; however 'plan' cannot be unset. You should remove 'plan' from your request or supply a non-empty val```bash
.../stripe/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php(35): Stripe\Exception\ApiErrorException::factory("You passed an empty string for 'plan'. We assume empty values are an attempt ...", 400, "{\n \"error...```bash
.../stripe/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php(35): Stripe\Exception\ApiErrorException::factory("You passed an empty string for 'plan'. We assume empty values are an attempt ...", 400, "{\n \"error\": {\n \"code\": \"parameter_invalid_empty\",\n \"doc_url\...", (Array:1), Object(Stripe\Util\CaseInsensitiveArray), "parameter_invalid_empty")
```
I am using latest version of Stripe and supporting extensions.
Note that one time contribution is working as expected. The above error is for recurring contributions.