Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all examples for Web Payments SDK and 2021-05-13 release (#242)
* upgrade node-payment sample app to use the web payment sdk * use fetch instead of form submit * fix typo * Adds snippet sample application to connect examples * disable input field if ACH is unavailable * remove used files * Upgrade Java OAuth sample app to use the latest Square SDK * update comment update comment * update link in README * add more comments * remove unwanted files * allow node and php oauth example to test in both sandbox and production mode * modify some comments * upgrade python and ruby * use default registry to resolve node dependencies * update README * add style.css * update ruby example * add styling to python oauth * follow sinatra conventions * add templating to ruby and node for simpler code * addressed some comments in PR * use window.createPayment * rename function to SquarePaymentFlow() * Update node_orders-payments to use web payment sdk * remove unused css elements * Migrate Java payments app to new web payments SDK * Add some comments and minor fixes * update return values * add http code * use production url for web payment sdk * use different library urls for different environments * display apple pay button * address best practice problems * reuse variable and replace nonce with token * preventDefault() is removed for button * add suggested changes from other PRs * use web sdk styling for google pay and apple pay * addressed more comments * address some nits * remove await from Square.payments() * added more changes * remove unwanted file * rename variable * fix missed comment * made some changes to be consistent with other apps * log error messages in payment-flow-message element * Apply suggestions from code review * Hide ACH payment method unless it's enabled * Fix ACH payment method * add last style changes * Upgrade to Ruby 2.7.2 * Update Rails to 6.1 and associated gems * Initial copying of node payment sample app * Update Rails payment project to work with Web Payments SDK * Fix a typo for Turbolinks * Refactor the python portion of the app to handle POSTs * Remove unused files * Fix spelling and clean up logging * Update PHP to use web payment sdk * add .env.example file * small edit in README * remove extra whitespace * fix typo * - remove empty lines - change capitalization - simplify server creation * Address comments * Uppercase the dynamic html * Trim idempotency key to 45 chars. Reduce some duplicate code * Fix bug with client * Pass errors correctly * Fix css based on feedback * Fix errors typo * update error handling * Update idempotency key to match other langs * Minor tweaks * Fix minor issues * Switch to using FastAPI * Fix nits and make js consistent * Fix imports * address some comments * update README for Node.js * Apply suggestions from code review Co-authored-by: Dean Papastrat <[email protected]> * fix a couple of other terminilogy issues * add space * Upgrading the csharp sample app to work with the Web Payments SDK (#12) All Javascript, for the most part, is copied directly from emmac@'s PR. However, I had to redo a lot of the actual routing. This project uses Razor Pages, which means it doesn't have a good Web API underneath. A more targeted upgrade would add Web API bindings too from ASP.NET. 1. Fetching the location in the index.cs 2. Converting ProcessPayment.cs to work with `fetch`. Note that this is not generally a supported thing in Razor Pages, and usually requires Web API 3. Converted all HTML and Styles README still needs an update * Update Rails readme * Address PR feedback on Rails readme updates * Update python sample readme * Change README to support payment SDK * Fix minor issue * Apply suggestions from code review for Python readme * Update connect-examples/v2/java_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Update connect-examples/v2/java_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * update php README * fix typo * update node order payment README * Update connect-examples/v2/php_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Update connect-examples/v2/php_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Update connect-examples/v2/php_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Standardize all payment JS / CSS files * Update connect-examples/v2/node_orders-payments/README.md Co-authored-by: Dean Papastrat <[email protected]> * Fix minor html problem * Improving dotnet readme (#19) * Improving dotnet readme Improving the .NET README according to the template done by emmac@ in the nodejs version. * Update connect-examples/v2/csharp_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Update connect-examples/v2/csharp_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Update connect-examples/v2/csharp_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> * Update connect-examples/v2/csharp_payment/README.md Co-authored-by: Dean Papastrat <[email protected]> Co-authored-by: Dean Papastrat <[email protected]> * Update all ReadMe files to be consistent and use developer.squareup.com * Returning the Square Error objects on error (#20) The Java SDK, when using futures, wraps all exceptions in a `CompletionException`. So to get the root `ApiException`, you must call `exception.getCause()`. Then, if we return the Square Error objects, the frontend code just works * Bump SDK versions to 11 Co-authored-by: Emma Chen <[email protected]> Co-authored-by: Bryan Ashley <[email protected]> Co-authored-by: Barak Jacob <[email protected]> Co-authored-by: emmac3 <[email protected]> Co-authored-by: Wolfgang Schuster <[email protected]> Co-authored-by: Justin Guze <[email protected]>
- Loading branch information