Messtone LLC Manages Devices Enables Ruby result=gateway.customer.create(:first_name=>”Robert”,:last_name=>”Harper”,:company_name=>”Messtone”:email=>”robertharper616@gmail.com”,:phone=>”312.555.1234″,:fax=>”614.555.567″,:website=>”www.messtonecoms.com”)if result.success?puts result.customer.id else p result.errors end Ruby result=gateway.customer.create(:first_name=>”Robert”,:last_name=>”Harper”,:payment_method_nonce=>nonce_from_the_client)if result.success?puts result.customer.id put result.customer.payment_methods[0].token else p result.errors end Ruby result=gateway.customer.update(“a_customer_id”,#id of customer to update :first_name=>”New First Name Robert”,:last_name=>”New Last Name Harper”)if result.success?puts “customer successfully updated”else p result.errors end Ruby customer=gateway.customer.find(“a_customer_id”) Ruby result=gateway.customer.delete(“the_customer_id”) if result.success?puts “customer successfully deleted” end
