Results 1 to 10 of 679

Hybrid View

  1. #1
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    131
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Code:
    define('TABLE_STRIPE', DB_PREFIX . 'stripe');
    PHP Code:
    $db-> execute("CREATE TABLE " TABLE_STRIPE  "(id INT(11) AUTO_INCREMENT PRIMARY KEY,customers_id INT(11),Stripe_Customers_id VARCHAR(32))"); 
    the above is how it should be done then anyone can use it without having to change code.

  2. #2
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    934
    Plugin Contributions
    9

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by OJ_SIMON View Post
    Code:
    define('TABLE_STRIPE', DB_PREFIX . 'stripe');
    PHP Code:
    $db-> execute("CREATE TABLE " TABLE_STRIPE  "(id INT(11) AUTO_INCREMENT PRIMARY KEY,customers_id INT(11),Stripe_Customers_id VARCHAR(32))"); 
    the above is how it should be done then anyone can use it without having to change code.
    Noted. I forgot that the TABLE_ constants are always accessible. Submitting now.

  3. #3
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    131
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    can i ask what this upgrade version is fixing or dealing with?

  4. #4
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    934
    Plugin Contributions
    9

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by OJ_SIMON View Post
    can i ask what this upgrade version is fixing or dealing with?
    Just a bugfix for configurations that are using table prefixes.

    The native code makes a call to a database table named `TABLE_STRIPE` but on the modules installation, it only makes a table named 'stripe' and ignores the prefix configuration. If this module is already working, you don't need to change anything (this means your ZenCart tables do not have prefixes and works fine with the table named just stripe). However, if someone just snags the module from the plugins directory and they do have table prefixes configured, they'll run into errors as the table is wrongly named and referred to incorrectly in the database define.

  5. #5
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    131
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by retched View Post
    Just a bugfix for configurations that are using table prefixes.

    The native code makes a call to a database table named `TABLE_STRIPE` but on the modules installation, it only makes a table named 'stripe' and ignores the prefix configuration. If this module is already working, you don't need to change anything (this means your ZenCart tables do not have prefixes and works fine with the table named just stripe). However, if someone just snags the module from the plugins directory and they do have table prefixes configured, they'll run into errors as the table is wrongly named and referred to incorrectly in the database define.
    Seem needed.

    can i also ask if you have or could check if the amount sent to Stripe is the correct amount when using the following:
    1. a coupon,
    2. a product that has a offer price,

    I only ask this because in my installation the only amount sent to stripe is the total before any discount is applied?

  6. #6
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    934
    Plugin Contributions
    9

    Default Re: Stripe.com payment integration module

    I can check on the first in a few but can you explain the second? What do you mean by "offer price"?

  7. #7
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    131
    Plugin Contributions
    0

    Default Re: Stripe.com payment integration module

    Quote Originally Posted by retched View Post
    I can check on the first in a few but can you explain the second? What do you mean by "offer price"?
    a offer made via SaleMaker in admin

 

 

Similar Threads

  1. pay2check.com payment module?
    By sunrise99 in forum Addon Payment Modules
    Replies: 0
    Last Post: 1 Nov 2011, 03:55 AM
  2. klikandpay.com payment module
    By rulest in forum Addon Payment Modules
    Replies: 0
    Last Post: 24 Sep 2010, 06:06 PM
  3. AlertPay Payment Module Integration Help Please!
    By etorf9751 in forum Addon Payment Modules
    Replies: 8
    Last Post: 16 Aug 2010, 05:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg