Language

2Checkout Documentation

Reauth

You must specify your API username and password using the the Twocheckout::API.credentials method before calling a method in this class.

Method

reauth

Use to a reauth a sale.

Arguments

  • None
    • Must be called on a sale instance.

Returns

Returns a Hash object.

Example Usage:

Twocheckout::API.credentials = { :username => 'APIuser1817037', :password => 'APIpass1817037' }

sale = Twocheckout::Sale.find(:sale_id => 4786293822)
sale.reauth

Example Response:

{
   "response_code" => "OK",
   "response_message" => "Payment reauthorized."
}