lib/active_merchant/billing/integrations/bit_pay/helper.rb in activemerchant-1.42.6 vs lib/active_merchant/billing/integrations/bit_pay/helper.rb in activemerchant-1.42.7
- old
+ new
@@ -36,9 +36,11 @@
end
def form_fields
invoice = create_invoice
+ raise StandardError, "Invalid response while retrieving BitPay Invoice ID. Please try again." unless invoice
+
{"id" => invoice['id']}
end
private