lib/veritrans/api.rb in veritrans-2.1.2 vs lib/veritrans/api.rb in veritrans-2.1.3

- old
+ new

@@ -44,13 +44,13 @@ data[:customer_details] = data.delete(:customer) if data[:customer] request_with_logging(:post, config.api_host + "/v2/charge", data) end - # POST https://app.sandbox.veritrans.co.id/snap/v1/charge + # POST https://app.sandbox.veritrans.co.id/snap/v1/transactions def create_snap_token(options = {}) - result = request_with_logging(:post, config.api_host.sub('//api.', '//app.') + "/snap/v1/charge", options) + result = request_with_logging(:post, config.api_host.sub('//api.', '//app.') + "/snap/v1/transactions", options) Veritrans::SnapResult.new(result.response, result.url, result.request_options, result.time) end alias_method :create_widget_token, :create_snap_token @@ -124,6 +124,6 @@ request_with_logging(:get, config.api_host + "/v2/point_inquiry/#{token_id}", {}) end alias_method :point_inquiry, :inquiry_points end -end \ No newline at end of file +end