Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleDo not uninstall token based gateways

Token based gateways should not be uninstalled unless you do not intend to use them anymore. Payment Accounts are linked to the payment gateway instance. If you reinstall a payment gateway that utilizes tokens like Stripe Payments, the associated gateway_id will no longer match and all existing Payment Accounts will be unusable. It's possible to update accounts_cc.gateway_id from the old gateway ID to the new gateway ID by running the following query. First, backup your database. Second, determine the old gateway_id by viewing existing records in the accounts_cc table. Third, determine the new gateway_id by observing the ID in the URL when managing the Payment Gateway in Blesta. Fourth, run the following query, replacing NEWID and OLDID with the new and old ID's.

Code Block
languagesql
UPDATE accounts_cc`accounts_cc` SET `gateway_id`='NEWID' WHERE `gateway_id`='OLDID';

Optional: Existing transactions can also be updated, in order to allow earlier transactions to be voided or refunded.

Code Block
languagesql
UPDATE `transactions` SET `gateway_id`='NEWID' WHERE `gateway_id`='OLDID';


...