Sha256: cfdf30a6a753406353942d7e10bd57cac2d64429cd11ab9c655377e8a1457300
Contents?: true
Size: 997 Bytes
Versions: 2
Compression:
Stored size: 997 Bytes
Contents
# frozen_string_literal: true require ::File.expand_path("../../../test_helper", __FILE__) module Stripe module Checkout class SessionTest < Test::Unit::TestCase should "be creatable" do session = Stripe::Checkout::Session.create( cancel_url: "https://stripe.com/cancel", client_reference_id: "1234", line_items: [ { amount: 123, currency: "usd", description: "item 1", images: [ "https://stripe.com/img1", ], name: "name", quantity: 2, }, ], payment_intent_data: [ receipt_email: "test@stripe.com", ], payment_method_types: ["card"], success_url: "https://stripe.com/success" ) assert_requested :post, "#{Stripe.api_base}/v1/checkout/sessions" assert session.is_a?(Stripe::Checkout::Session) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-4.9.1 | test/stripe/checkout/session_test.rb |
stripe-4.9.0 | test/stripe/checkout/session_test.rb |