Giter Club home page Giter Club logo

Comments (2)

githubjonny avatar githubjonny commented on July 18, 2024

From what I can see, the official stripe module leaves the following records in the database (ps_configuration) even when it has been uninstalled / deleted.

CONF_STRIPE_OFFICIAL_FIXED
CONF_STRIPE_OFFICIAL_VAR
CONF_STRIPE_OFFICIAL_FIXED_FOREIGN
CONF_STRIPE_OFFICIAL_VAR_FOREIGN
STRIPE_MINIMUM_AMOUNT_3DS
STRIPE_OS_SOFORT_WAITING
STRIPE_CAPTURE_WAITING
STRIPE_SEPA_WAITING
STRIPE_SEPA_DISPUTE
STRIPE_OXXO_WAITING
STRIPE_TEST_KEY
STRIPE_TEST_PUBLISHABLE
STRIPE_CATCHANDAUTHORIZE
STRIPE_SAVE_CARD
STRIPE_WEBHOOK_SIGNATURE
STRIPE_WEBHOOK_ID
STRIPE_ACCOUNT_ID
STRIPE_ENABLE_APPLEPAY_GOOGLEPAY
STRIPE_REINSURANCE

However, the JA stripe module seems to use a different structure for database:

CONF_JSTRIPESUBSCRIPTIONS_FIXED
CONF_JSTRIPESUBSCRIPTIONS_VAR
CONF_JSTRIPESUBSCRIPTIONS_FIXED_FOREIGN
CONF_JSTRIPESUBSCRIPTIONS_VAR_FOREIGN
JSTRIPESUBSCRIPTIONS_MODE
JSTRIPESUBSCRIPTIONS_PUBLISHABLE_KEY
JSTRIPESUBSCRIPTIONS_SECRET_KEY
JSTRIPESUBSCRIPTIONS_SHIPPING
JSTRIPESUBSCRIPTIONS_TOKEN

Is there any other settings / database information that is left by the official stripe module when uninstalled?

from stripe_official.

clotairer avatar clotairer commented on July 18, 2024

@githubjonny

The Official Stripe module define as const all configurations here :

const KEY = 'STRIPE_KEY';
const TEST_KEY = 'STRIPE_TEST_KEY';
const PUBLISHABLE = 'STRIPE_PUBLISHABLE';
const TEST_PUBLISHABLE = 'STRIPE_TEST_PUBLISHABLE';
const OS_SOFORT_WAITING = 'STRIPE_OS_SOFORT_WAITING';
const CAPTURE_WAITING = 'STRIPE_CAPTURE_WAITING';
const SEPA_WAITING = 'STRIPE_SEPA_WAITING';
const SEPA_DISPUTE = 'STRIPE_SEPA_DISPUTE';
const OXXO_WAITING = 'STRIPE_OXXO_WAITING';

...

All are prefixed by STRIPE_XXX.

&& Configuration::deleteByName(self::MODE)
&& Configuration::deleteByName(self::REFUND_MODE)
&& Configuration::deleteByName(self::ENABLE_IDEAL)
&& Configuration::deleteByName(self::ENABLE_SOFORT)
&& Configuration::deleteByName(self::ENABLE_GIROPAY)
&& Configuration::deleteByName(self::ENABLE_BANCONTACT)
&& Configuration::deleteByName(self::ENABLE_FPX)
&& Configuration::deleteByName(self::ENABLE_EPS)
&& Configuration::deleteByName(self::ENABLE_P24)
&& Configuration::deleteByName(self::ENABLE_SEPA)
&& Configuration::deleteByName(self::ENABLE_ALIPAY)
&& Configuration::deleteByName(self::ENABLE_OXXO);

I confirm all configuration are not removed. It's probably a bug for those who are not linked to order state ID. But if you want to clean you PrestaShop, you can remove all configurations STRIPE_XXX.

CONF_STRIPE_ >>> NOT from Stripe Official.
JSTRIPESUBSCRIPTIONS_ >>> NOT from Stripe Official.

According to database tables of the module, they are not automatically removed because, if you are a merchand and uninstall the module, old order paid by Stripe need payment history. That's why, this module don't remove tables. All tables of the module are prefixed by ps_stripe_xxx and associated to an object model in classes directory.

You can remove states associated to Stripe module too (SOFORT_WAITING, CAPTURE_WAITING, ...) . They are not deleted for the same reason why tables are not removed.

from stripe_official.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.