Prevent Stripe refund from cancelling product

Permalink Browser Info Environment
Hi.

When we process a partial refund through Stripe, we do not want the webhook to cancel the purchase on our website.

Is there a way we can do this?

If not, can I just remove the charge.refunded webhook in Stripe dashboard?

Thanks!

Type: Ticket
Status: Resolved
simonchilton
View Replies:
concrete5cojp replied on at Permalink Reply
concrete5cojp
Hi,

This package is using the following webhook events only-
- customer.subscription.created
- customer.subscription.updated
- customer.subscription.deleted
- customer.updated customer.deleted
- invoice.payment_action_required

The site is being updated now by the `customer.subscription.updated` event.

You may want to override the `\C5jStripe\Controller\WebhookController::handleCustomerSubscriptionUpdated()` and make changes as your need.

Thanks.
simonchilton replied on at Permalink Reply
simonchilton
Understood.

Thanks so much for the fast reply!

Simon.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.5
Version Installed - 8.5.5
Database Version - 20201116182100

# Database Information
Version: 10.2.33-MariaDB-log
SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), C5J Stripe Subscription (1.0.1), Community Store (2.2.7), Elemental Cloner (1.2.4), ExchangeCore reCAPTCHA (1.1.1), EZ Paypal (2.0.1), HonestWebsites Simple testimonials (1.1.2), HTML+PHP Code Block (1.0.2), Likes This! (2.0.1), Mind Body Maintenance package (0.9.1), Stripe Checkout Payment Method (1.0), Vimeo Video (1.1)

# concrete5 Overrides
blocks/vimeo/icon.png, blocks/vimeo/add.php, blocks/vimeo/db.xml, blocks/vimeo/scrapbook.php, blocks/vimeo/composer.php, blocks/vimeo/controller copy.php, blocks/vimeo/LICENSE.TXT, blocks/vimeo/view copy.php, blocks/vimeo/form_setup_html.php, blocks/vimeo/view.php, blocks/vimeo/edit.php, blocks/vimeo/controller.php, blocks/vimeo, blocks/express_entry_detail/templates/class_list.php, blocks/express_entry_detail/templates/course_list.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, blocks/feature/templates/feature_amplify.php, blocks/feature/templates, blocks/feature, blocks/favourites_list/icon.png, blocks/favourites_list/view.css, blocks/favourites_list/view.js, blocks/favourites_list/view.php, blocks/favourites_list/controller.php, blocks/favourites_list, blocks/autonav/templates/subscriber_options_filtered.php, blocks/autonav/templates/breadcrumb_mbmtv.php, blocks/autonav/templates, blocks/autonav, blocks/topic_list/templates/conditional.php, blocks/topic_list/templates/sliding.php, blocks/topic_list/templates, blocks/topic_list, blocks/page_list/auto.js, blocks/page_list/templates/mbm_grid/view.php, blocks/page_list/templates/mbm_grid, blocks/page_list/templates, blocks/page_list, controllers/single_page/admin/classes copy.php, controllers/single_page/admin/classes copy 2.php, controllers/single_page/admin/classes.php, controllers/single_page/admin, controllers/single_page, elements/header_required.php, jobs/get_vimeo_data.php, single_pages/register.php, single_pages/page_not_found.php, single_pages/login.php, single_pages/admin/classes/view copy.php, single_pages/admin/classes/view.php, single_pages/admin/classes, single_pages/admin, single_pages/members/profile.php, single_pages/members/directory.php, single_pages/members/view.php, single_pages/members, single_pages/account/icon.png, single_pages/account/edit_profile.php, single_pages/account/messages.php, single_pages/account/view.php, single_pages/account/avatar.php, single_pages/account, single_pages/page_forbidden.php

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.4.28

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, interbase, intl, ionCube Loader, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 16
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 2500
memory_limit - 512M
post_max_size - 128M
upload_max_filesize - 128M
ibase.max_links - Unlimited
ibase.max_persistent - Unlimited
ic24.api.max_timeout - 7
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.max_accelerated_files - 32531
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.