Class: Stripe::Source::Redirect

Inherits:
Stripe::StripeObject show all
Defined in:
lib/stripe/resources/source.rb

Constant Summary

Constants inherited from Stripe::StripeObject

Stripe::StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from Stripe::StripeObject

#last_response

Method Summary

Methods inherited from Stripe::StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#failure_reasonObject (readonly)

The failure reason for the redirect, either ‘user_abort` (the customer aborted or dropped out of the redirect flow), `declined` (the authentication failed or the transaction was declined), or `processing_error` (the redirect failed due to a technical error). Present only if the redirect status is `failed`.



393
394
395
# File 'lib/stripe/resources/source.rb', line 393

def failure_reason
  @failure_reason
end

#return_urlObject (readonly)

The URL you provide to redirect the customer to after they authenticated their payment.



395
396
397
# File 'lib/stripe/resources/source.rb', line 395

def return_url
  @return_url
end

#statusObject (readonly)

The status of the redirect, either ‘pending` (ready to be used by your customer to authenticate the transaction), `succeeded` (succesful authentication, cannot be reused) or `not_required` (redirect should not be used) or `failed` (failed authentication, cannot be reused).



397
398
399
# File 'lib/stripe/resources/source.rb', line 397

def status
  @status
end

#urlObject (readonly)

The URL provided to you to redirect a customer to as part of a ‘redirect` authentication flow.



399
400
401
# File 'lib/stripe/resources/source.rb', line 399

def url
  @url
end