Closed (fixed)
Project:
Braintree Cashier
Version:
8.x-2.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2018 at 22:52 UTC
Updated:
23 May 2018 at 01:10 UTC
Jump to comment: Most recent
Comments
Comment #2
brandonratz commentedComment #3
shaundychkoHmmm, at first glance that looks like a problem with using Braintree API 1.x, since the getGateway() method was introduced in Braintree API 2.x. Could you check that you're using the 2.x branch of the Braintree API module?
Comment #4
brandonratz commentedLooks like I'm using 1.7.0 for braintree_api
braintree_cachierwas installed with composer but I don't see anything in the composer.json of the module requiring ~2.x --Running a
composer depends drupal/braintree_apidoes show the following:drupal/braintree_cashier 2.0.0-beta2 requires drupal/braintree_api (*)I'm going to install 2.x and report back. Perhaps
drupal/braintree_api:~2.xshould be required?Comment #6
shaundychkoAh, thanks, yes,
drupal/braintree_api:~2.0would be better. I mentioned it in the docs, and it's the reason for the 2.x branches in both projects, but it also belongs most importantly in the composer.json.Comment #7
brandonratz commentedThanks for the help @ShaunDychko. Adding
drupal/braintree_api:^2.xto project solve my issue.Fantastic module. An alternative of using Commerce, commerce_recurring, commerce_license, etc is very cumbersome and this filled the gap perfectly.
Comment #8
shaundychkoThanks for the great feedback!