Adds a new class to model Amazon's ORO. Primarily, this model's responsibility is to fetch an ORO by ID and expose a few convenience methods for retrieving response data.
Testing
Login via any "Login with Amazon" widgets to the point where the address book appears.
That just created an ORO, retrieve its ID by looking at orderReference.getAmazonOrderReferenceId() in onOrderReferenceCreate in Amazon's JS.
Instantiate and play with the ORO. oro = Peddler::OrderReferenceObject.new('<that ORO ID>'). Pass in an MWS::OffAmazonPayments instance with the MWS tokens all configured unless you have them set in environment variables.
What
Adds a new class to model Amazon's ORO. Primarily, this model's responsibility is to fetch an ORO by ID and expose a few convenience methods for retrieving response data.
Testing
orderReference.getAmazonOrderReferenceId()
inonOrderReferenceCreate
in Amazon's JS.oro = Peddler::OrderReferenceObject.new('<that ORO ID>')
. Pass in anMWS::OffAmazonPayments
instance with the MWS tokens all configured unless you have them set in environment variables.