Jump to content

PayPal Powered by Braintree


CubeCart Bot

Recommended Posts

  • 1 month later...

  • 4 months later...
  • 9 months later...

I know very little about PayPal and even less about this plugin as it wouldnt work with most third party skins and only with Foundation.  I also understand that it is being discontinued by PayPal but you should really check with @Al Brookbanks.  I think the Braintree service is only available for merchants in those countries and that was a PayPal restriction and nothing to do with the extension.  Use Stripe instead, MUCH better

Link to comment
Share on other sites

@havenswift-hosting So I created a test stripe API and tried it, after payment capture, on the stripe dashboard it seems to add two zeros to the amount making the price higher than the regular. However the transaction amount on Cubecart seems to display the right price, what could be causing this?

Screenshot_2019-06-02 Admin Control Panel.png

Screenshot_2019-06-02 Dashboard – Unnamed account – Stripe [Test].png

@bsmither do you have any idea or knowledge on this?

Edited by Ferguson230
Link to comment
Share on other sites

  • 4 weeks later...

I edited the rootfolder/modules/gateway/Stripe/gateway.class.phpgateway file to solve the charge difference.

near line 113, change
$source = \Stripe\Source::create(array(
				  "amount" => $this->_basket['total']*100,
				  "currency" => strtolower($GLOBALS['config']->get('config', 'default_currency')),

to 

$source = \Stripe\Source::create(array(
				  "amount" => $this->_basket['total']*1,
				  "currency" => strtolower($GLOBALS['config']->get('config', 'default_currency')),

and near line 130, change

$charge = \Stripe\Charge::create(array(
			  "customer" => $customer_id,
			  "amount" => $this->_basket['total']*100,
			  "currency" => strtolower($GLOBALS['config']->get('config', 'default_currency')),

to

$charge = \Stripe\Charge::create(array(
			  "customer" => $customer_id,
			  "amount" => $this->_basket['total']*1,
			  "currency" => strtolower($GLOBALS['config']->get('config', 'default_currency')),

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...