lib/active_merchant/billing/gateways/culqi.rb in activemerchant-1.100.0 vs lib/active_merchant/billing/gateways/culqi.rb in activemerchant-1.101.0
- old
+ new
@@ -206,14 +206,15 @@
invalidate: 'SingleCallInvalidateToken',
tokenpay: 'SingleCallTokenTransaction',
}
def commit(action, params)
- response = begin
- parse(ssl_post(url + ACTIONS[action], post_data(action, params), headers))
- rescue ResponseError => e
- parse(e.response.body)
- end
+ response =
+ begin
+ parse(ssl_post(url + ACTIONS[action], post_data(action, params), headers))
+ rescue ResponseError => e
+ parse(e.response.body)
+ end
success = success_from(response)
Response.new(
success,