Jump to content
Sign in to follow this  
CubeCart Bot

PayPal Powered by Braintree

Recommended Posts

@havenswift-hosting I know that it was stated that 

Quote

This extension is only available to French, UK & US merchants trading with Euros, Pound Sterling or US Dollars as primary currency.

but is there a way to modify it to accept a different currency besides those three stated currencies?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Posted (edited)

@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

Share this post


Link to post
Share on other sites

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')),

 

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...