cancel
Showing results for 
Search instead for 
Did you mean: 

how to install Stripe Payment module ?

how to install Stripe Payment module ?

Hi there.

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.

many thx

5 REPLIES 5

Re: how to install Stripe Payment module ?

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.

Re: how to install Stripe Payment module ?

Hello @luke_mersh 

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.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: how to install Stripe Payment module ?

@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

Thanks

Re: how to install Stripe Payment module ?

Hi @luke_mersh,

 

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.

 

Best regards
Madhuresan
Bootsgrid

Re: how to install Stripe Payment module ?

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:

php

Copy code

require_once('stripe-php/init.php');

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:

php

Copy code

$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.

Lucy from Magenest | eCommerce Development Agency
Visit us: https://magenest.com/