Class: Stripe::SubscriptionCreateParams::PaymentSettings::PaymentMethodOptions::WechatPay

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(app_id: nil, client: nil) ⇒ WechatPay

Returns a new instance of WechatPay.



889
890
891
892
# File 'lib/stripe/params/subscription_create_params.rb', line 889

def initialize(app_id: nil, client: nil)
  @app_id = app_id
  @client = client
end

Instance Attribute Details

#app_idObject

The app ID registered with WeChat Pay. Only required when client is ‘ios` or `android`.



885
886
887
# File 'lib/stripe/params/subscription_create_params.rb', line 885

def app_id
  @app_id
end

#clientObject

The client type that the end customer will pay from.



887
888
889
# File 'lib/stripe/params/subscription_create_params.rb', line 887

def client
  @client
end