Comments (2)
Hey Thomas! Some initial thoughts here:
As you mentioned, this is probably the result of ill-formatted data somewhere. Initially, I thought this could be an issue with the data being sent (which is formatted here) - because PayPal is very picky that all numbers add up - but in that case, the PayPal dialogue should quit, a JS alert should pop up for the customer, and an error message should be logged to the server log.
But in this case, that doesn't appear to be the case. This is the request that it should be performing, but seems like something is breaking before then. My guess is it'll be something with the paypal_order
not building correctly. I'm not sure how customized your installation is, is there any reason you can think of that would make the paypal_order
not build correctly?
from solidus_paypal_commerce_platform.
Looks like we finally figured this one out, or more or less. Since the bug only happens when BASIC AUTH is enabled, which we have enabled for our staging server, it seems pretty clear that's the cause. Turning it off produced another error, but as it turned out, that was related to our test credentials.
Once we had Basic AUTH off and switched in the live credentials. It worked just fine. For now, maybe we should just add a note about it in the README since everyone's setup is likely to be a bit different.
Beyond that, I think we might be able to fix this by conditionally adding the Basic Auth credentials directly to the request URL (if the BASIC_AUTH env was set). eg something simple like:
https://#{ENV['BASIC_AUTH'].present? ? ENV['BASIC_AUTH'] + "@" : ""}staging-server-on-heroku.com/solidus_paypal_commerce_platform/paypal_orders/R684159333?payment_method_id=3&order_token=gtZcM_4Ksdb4aGFZjCah7Q
from solidus_paypal_commerce_platform.
Related Issues (20)
- Enable venmo HOT 1
- Make the Venmo button testable from outside US contries HOT 6
- Gem has RuboCop warnings HOT 1
- Gem does not support Ruby 3.0 HOT 6
- javascript_sdk_url shipping_preference parameter breaks the PayPal integration HOT 1
- Incorrect javascript_sdk_url parameter conditions HOT 5
- Usage Questions HOT 3
- Release 0.6 and attach that version to a different branch HOT 1
- Release 1.0.0.beta1 compatible with the new starter frontend HOT 1
- Decide about the testing approach for extensions that involve SSF code HOT 1
- Solidus 3.2 doesn't install SPCP's checkout page when PayPal is chosen as the payment method HOT 2
- wizard doesn't create payment method in v1.0.0.beta1 and no partial. HOT 11
- Hide the installer option for copying specs
- Preferred paypal button color error message should be translated
- Allow cancelling orders (v1 port of #180)
- PayPal Debug ID showing also for non PayPal payments HOT 2
- Dummy app not compatible with main search autocomplete? HOT 3
- Error in Order Calculations HOT 3
- Support shipping_preference: GET_FROM_FILE to be able to checkout without address
- Use Rails Credentials mechanism for client secrets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidus_paypal_commerce_platform.