*

kenoffice

  • **
  • 22 posts
Update for Braintree payment gateway
« on: May 29, 2024, 11:01:40 AM »
hello
There are any plans to update the Braintree gateway ? Seems that is very very old.
I just get credentials for sandbox and at first try I get err:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/XXX/public_html/oc-content/plugins/osclass_pay/payments/braintree/lib/Braintree/Digest.php on line 53
So I replaced the curly braces to braces as follows:
$innerPad[$i] = $keyDigest[$i] ^ $innerPad[$i];
$outerPad[$i] = $keyDigest[$i] ^ $outerPad[$i];
But another err came up at next try:
Fatal error: Uncaught Error: Call to undefined function create_function() in /home/XXX/public_html/oc-content/plugins/osclass_pay/payments/braintree/lib/Braintree/Util.php:203
I stop because is obvious that this will nevesr stop until an updated version of this gateway will show up.
PHP is 8.1
thank you !
There is no perfect classifieds script. I dream to make it.

*

MB Themes

Re: Update for Braintree payment gateway
« Reply #1 on: June 04, 2024, 03:14:55 PM »
Please create support ticket and coordiante with support to identify and possibly replace old payment library with new one (if exists).
I think braintree change their APIs and libraries quite often.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots