app/models/solidus/gateway/culqi_gateway.rb in solidus_culqi-0.0.2 vs app/models/solidus/gateway/culqi_gateway.rb in solidus_culqi-0.1.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Solidus class Gateway::CulqiGateway < SolidusCulqi::Gateway.parent_class extend SolidusCulqi::Gateway preference :public_key, :string @@ -123,10 +125,11 @@ end def generate_card(customer, token) card = Culqi::Card.create( customer_id: customer, - token_id: token + token_id: token, + validate: false ) JSON.parse(card)["id"] end end end