Sha256: c9ae029cfa24c4faeb9e39b70aab74e34028d8a6a426db0fa8a75d8ba2c4fb61
Contents?: true
Size: 997 Bytes
Versions: 4
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( allowed_source_types: ["card"], 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", ], 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
4 entries across 4 versions & 1 rubygems