Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Stripe Elements and Apple Pay (via Payment Request API) #305

Merged
merged 11 commits into from
Dec 11, 2018

Conversation

bbonislawski
Copy link
Contributor

@bbonislawski bbonislawski commented Jan 24, 2018

screen shot 2018-12-10 at 6 01 27 pm

@kushniryb
Copy link
Contributor

@bbonislawski Is it valid?

@damianlegawiec damianlegawiec changed the title add support for stripe elements Add support for Stripe Elements and Apple Pay (via Payment Request API) Jul 15, 2018
app/models/spree/order_decorator.rb Show resolved Hide resolved
app/models/spree/order_decorator.rb Outdated Show resolved Hide resolved
lib/views/frontend/spree/checkout/payment/_stripe.html.erb Outdated Show resolved Hide resolved
spec/models/spree/order_spec.rb Outdated Show resolved Hide resolved
spec/models/spree/order_spec.rb Outdated Show resolved Hide resolved
@dimon-k dimon-k force-pushed the use-stripe-elements branch 3 times, most recently from 31f5dce to deabf2e Compare July 27, 2018 15:32
@dimon-k
Copy link
Contributor

dimon-k commented Jul 28, 2018

@damianlegawiec, locally all the tests are passing (no timeouts). Before my last changes, I had the same situation, I had to rebuild couple of times on travis, then it went through. Wanted to do the same now, but for some reason I cannot see a Rebuild button anymore.

app/models/spree/order_decorator.rb Outdated Show resolved Hide resolved
app/models/spree/payment_decorator.rb Outdated Show resolved Hide resolved
@dimon-k dimon-k force-pushed the use-stripe-elements branch 2 times, most recently from cdf7a51 to f7a648c Compare July 31, 2018 08:10
Copy link

@caudatecoder caudatecoder left a comment

Choose a reason for hiding this comment

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

I guess we also need to:

  • Include instructions in README for steps required for ApplePay setup
  • Instruction on how to use SSL in dev environment

def apple_pay?
payment_method.is_a? Spree::Gateway::StripeApplePayGateway
end
end

Choose a reason for hiding this comment

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

It will be useful to also have a scope like from_credit_card but for apple pay payments
from_apple_pay for example

Copy link
Member

Choose a reason for hiding this comment

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

@caudatecoder let's do it on another occasion :)

app/models/spree/gateway/stripe_elements_gateway.rb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
@damianlegawiec
Copy link
Member

@caudatecoder I'm working on a tutorial for this and a demo app - but this is out of the scope of this repository :)

Copy link

@btolarz btolarz left a comment

Choose a reason for hiding this comment

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

Found one minor, but everything else looks ok.

@damianlegawiec damianlegawiec merged commit 36ef368 into spree:master Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants