Skip to content

Simple Payments#7511

Merged
eliorivero merged 98 commits intomasterfrom
feature/simple-payments
Jul 25, 2017
Merged

Simple Payments#7511
eliorivero merged 98 commits intomasterfrom
feature/simple-payments

Conversation

@artpi
Copy link
Copy Markdown
Contributor

@artpi artpi commented Jul 24, 2017

This introduces Simple Payments feature.

This is an "ecommerce light" feature.

Stark team: we dont merge this. The Jetpack release lead does. Dont merge!

zrzut ekranu 2017-07-24 o 19 30 44

More details in projectpaymentbutton-p2

Warning: on calypso side, there still is work to do, but we are pretty certain this JP piece is production-ready.
Since there is no UI in JP, users will start using it when we relese it in calypso.

We are still tweaking CSS, otherwise we consider it ready

Testing

  1. Check this branch in your JP sandbox
  2. Build calypso in dev
  3. Go to post/page editor
  4. Click insert -> payment button
  5. Fill product details (email has to be a user email on PP sandbox infrastructure. You can use artur.piszek+test2@automattic.com)
  6. This inserts the shortcode
  7. Go to your page frontend
  8. Do localStorage.setItem('simple-payments-env', 'sandbox' ); to switch to Sandbox mode, refresh
  9. Click "pay with paypal" to go with the flow. You can use my test sandbox account (artur.piszek+test@automattic.com , pass: potato123)

Copy link
Copy Markdown
Contributor

@zinigor zinigor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works well, changes look good, thanks!

@zinigor zinigor added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Jul 25, 2017
@eliorivero eliorivero merged commit e3fec88 into master Jul 25, 2017
@eliorivero eliorivero removed the [Status] Ready to Merge Go ahead, you can push that green button! label Jul 25, 2017
wp_register_script( 'paypal-checkout-js', 'https://www.paypalobjects.com/api/checkout.js', array(), null, true );
wp_register_script( 'paypal-express-checkout', plugins_url( '/paypal-express-checkout.js', __FILE__ ),
array( 'jquery', 'paypal-checkout-js' ), self::$version );
wp_enqueue_style( 'simple-payments', plugins_url( '/simple-payments.css', __FILE__ ) );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this enqueueing, rather than just registering?

@kraftbj kraftbj deleted the feature/simple-payments branch May 24, 2019 17:34
@jeherve jeherve added the [Feature] Pay with PayPal aka Simple Payments label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Pay with PayPal aka Simple Payments [Pri] BLOCKER

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants