Skip to content

Commit

Permalink
Use the Cents, Luke
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer committed Oct 24, 2024
1 parent eb9ba09 commit b85b40f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
expect(order.stripe_transfer_id).to eq("st_fake_1234")
expect(order.events).to exist(description: "Payment Split Attempted")
expect(order.events).to exist(description: "Payment Split Completed")
expect(Stripe::Transfer).to(have_received(:create).with({amount: order.vendors_share.to_i, currency: "usd", destination: marketplace.stripe_account, transfer_group: order.id}, {api_key: marketplace.stripe_api_key}))
expect(Stripe::Transfer).to(have_received(:create).with({amount: order.vendors_share.cents, currency: "usd", destination: marketplace.stripe_account, transfer_group: order.id}, {api_key: marketplace.stripe_api_key}))
end

context "when stripe sends us an event we can't handle" do
Expand Down

0 comments on commit b85b40f

Please sign in to comment.