Skip to content

Commit

Permalink
AI-64 fix charge test
Browse files Browse the repository at this point in the history
  • Loading branch information
jalozanot-conekta committed Oct 11, 2024
1 parent 2823d71 commit 253e59a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/api/orders_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
unit_price: 1555
})
]
payment_method_data = {
expires_at: unix_timestamp,
type: 'cash'
}
charges = Array.new(1)
payment_method = Conekta::ChargeRequestPaymentMethod.build(payment_method_data)
charges[0] = Conekta::ChargeRequest.new({ amount: 1555,
payment_method: Conekta::ChargeRequestPaymentMethod.new(
{
expires_at: unix_timestamp,
type: 'cash'
}
)
payment_method: Conekta::ChargeRequestPaymentMethod.build(payment_method_data)
})
request = Conekta::OrderRequest.new(
{
Expand Down

0 comments on commit 253e59a

Please sign in to comment.