Kurtis
08/16/2022, 2:00 PMPayee(s) passed in transaction does not match expected merchant id. Please ensure you are passing merchant-id=UAQHKSDFIT or <mailto:merchant-id-kasdgjgsdgsd@personal.example.com|merchant-id-kasdgjgsdgsd@personal.example.com> to the sdk url. unfortunately.
I am:
• Using gem "solidus_paypal_braintree", github: "solidusio/solidus_paypal_braintree", branch: :master
• requiring solidus_paypal_braintree/frontend in JS
• requiring spree/backend/solidus_paypal_braintree in JS
• requiring spree/backend/solidus_paypal_braintree in CSS
This is my spree.rb:
config.static_model_preferences.add(
SolidusPaypalBraintree::Gateway,
"braintree_env_credentials", {
environment: Rails.env.production? ? "production" : "sandbox",
merchant_id: ENV["BRAINTREE_MERCHANT_ID"],
public_key: ENV["BRAINTREE_PUBLIC_KEY"],
private_key: ENV["BRAINTREE_PRIVATE_KEY"],
paypal_flow: "checkout",
use_data_collector: true # Fingerprint the user's browser when using PayPal
}
)
Have tried use_data_collector as both true and false (not sure what is best?)
I am using the API keys from Braintree Sandbox for above merchant ID, public key and private key. I have also set the PayPal sandbox credentials inside Processing Options on Braintree gateway, which is linked to the PayPal developer sandbox account.
My Rails app is v6.1.6.1, Solidus 3.1 and Solidus paypal braintree is 1.1.1. We’re using cssbundling-rails + jsbundling-rails for JS.
I feel like it’s something small but I cannot figure it out 🤦♂️ thanks!!!Ryan Woods
08/16/2022, 2:32 PMSolidusPaypalBraintree::Gateway.first.preferenceswaiting_for_dev
08/16/2022, 2:36 PMKurtis
08/16/2022, 2:42 PMKurtis
08/16/2022, 2:43 PMKurtis
08/16/2022, 2:57 PMKurtis
08/16/2022, 2:57 PMKurtis
08/16/2022, 2:57 PMClient SDK enabled? and Token generation enabled? be on or off?Kurtis
08/16/2022, 2:57 PMRyan Woods
08/16/2022, 3:05 PMPaymentMethod should be setup with static preferences.
Therefore, SolidusPaypalBraintree::Gateway.first.preference_source should be braintree_env_credentials. (You’ll also need to set the ENV variables). Otherwise in admin you can change the PaymentMethod to not use static preferences and just manually type them in.
If you see the credentials are correct as per SolidusPaypalBraintree::Gateway.first.preferences. Then there’s probably something wrong elsewhere Kurtis
08/16/2022, 3:06 PMKurtis
08/16/2022, 3:06 PMKurtis
08/17/2022, 9:15 AMRyan Woods
08/17/2022, 10:19 AMKurtis
08/17/2022, 10:29 AM