I am really wanting to set up Stripe payment method, but i only have a max of 512mb of PHP limit and I cant afford to buy extension.
would really love for someone to help me with this issue.
So I am looking for advice!
I am running Magento 2- Open source ver.2.3.x on a remote server.
willing to pay for extension but I am limited to 512mb limit on PHP.
is this posssible and if so please help.
Instead of paying for extension, I would suggest getting a bit better hosting which can run Magento properly.
Take a look at a2hosting plans, they generally have low pricing for first year.
@luke_mersh you can also increase this limit from php.ini file and then restart the apache server using below command.
sudo service apache2 restart
First ask your hosting to increase the memory limit of the server and restatr the server by using command on terminal window.
If you need to integrate the stripe payment for your magento then proceed with here https://bootsgrid.com/product/magento-2-stripe-payment/
If you get solution, then give kudos & accept as solution.
Stripe provides a PHP library that you can use to integrate their payment method into your website. This library has no specific requirements for PHP memory limit, so it should work for you even with a limit of 512mb.
You can follow the instructions on Stripe's website to install and use the PHP library: https://stripe.com/docs/development#php
Here are the basic steps you need to take:
- Create a Stripe account if you haven't already done so.
- Download the Stripe PHP library from GitHub: https://github.com/stripe/stripe-php/releases
- Extract the contents of the archive and upload the "stripe-php" folder to your website's root directory.
- Include the Stripe PHP library in your PHP code:
Set up the Stripe PHP library with your API key: php Copy code \Stripe\Stripe::setApiKey('your_api_key_here');
Use the library to create a payment charge:
$charge = \Stripe\Charge::create(array(
'amount' => 1000,
'currency' => 'usd',
'source' => 'tok_visa',
'description' => 'Example charge'
This is just a basic example, but it should give you an idea of how to use the Stripe PHP library to create a payment charge. You can find more detailed documentation and examples on Stripe's website. Note that if you're not comfortable working with PHP code, you may want to consider hiring a developer to help you set up Stripe on your website or using extension like Stripe Global.
To install the Stripe Payment module, follow these general steps:
1. Log in to your website's administration panel or content management system (CMS).
2. Navigate to the module or plugin management section.
3. Locate the option to install or add a new module.
4. Search for "Stripe Payment" in the available modules/plugins directory.
5. Select the Stripe Payment module and click on the "Install" button.
6. Once the installation is complete, you may need to configure the module settings.
7. Obtain your Stripe API keys from the Stripe dashboard. You will typically need the Publishable Key and Secret Key.
8. Enter the API keys into the module's configuration settings. These keys establish a connection between your website and Stripe's payment system.
9. Customize any additional settings according to your preferences, such as currency selection, payment methods, or checkout options.
10. Save the changes and enable the Stripe Payment module on your website.
11. Test the payment functionality to ensure that it's working correctly. Create a test order or make a small transaction to verify the integration.
Please note that the specific steps may vary depending on the CMS or platform you are using. It's recommended to refer to the documentation or support resources provided by the Stripe Payment module for detailed instructions tailored to your platform.