Giter VIP home page Giter VIP logo

Comments (3)

tailorvj avatar tailorvj commented on June 24, 2024

You'll need to create an Amazon Seller Central account. Afterwards, get your access key and secret key from the "Integration" tab on your AWS account.
https://payments.amazon.com/sdui/sdui/accountstatus
https://payments.amazon.com/sdui/sdui/helpTab/Checkout-by-Amazon/Advanced-Integration-Help/Using-Your-Access-Key

Once you have your access key and secret key, head over to config/settings.yml. Change amazon_access_key and amazon_secret_key appropriately.

from selfstarter.

Jarred-Sumner avatar Jarred-Sumner commented on June 24, 2024

There's an additional step. I intentionally left out code to charge multi-use tokens, to raise the barrier to entry slightly higher in the hopes of preventing unsophisticated scammers. Have a look at the documentation for Amazon FPS to see how to charge and refund multi-use tokens. You'll want to implement IPN.

On Feb 14, 2014, at 11:19 AM, Tailor Vijay [email protected] wrote:

You'll need to create an Amazon Seller Central account. Afterwards, get your access key and secret key from the "Integration" tab on your AWS account.
https://payments.amazon.com/sdui/sdui/accountstatus
https://payments.amazon.com/sdui/sdui/helpTab/Checkout-by-Amazon/Advanced-Integration-Help/Using-Your-Access-Key

Once you have your access key and secret key, head over to config/settings.yml. Change amazon_access_key and amazon_secret_key appropriately.


Reply to this email directly or view it on GitHub.

from selfstarter.

jtdavis247 avatar jtdavis247 commented on June 24, 2024

Yeah I understnad why you set it up that way for sure. I have done everything that @tailorvj has mentioned now I am following the amazon_flext_pay documentation to try to collect money. I am fairly new to calling API's so thank you for your patients. So do I put this code ...


begin
response = AmazonFlexPay.pay('12.99', 'USD', 'senderToken123')
flash[:notice] = "Thanks! Your payment is processing."
rescue AmazonFlexPay::API::Error => e
flash[:error] = "Sorry, something went wrong."
e.errors.each do |error|
# notify yourself about error.code and error.message
end
end

redirect_to product_path

in the Postfill method like so...


def postfill
unless params[:callerReference].blank?
@order = Order.postfill!(params)
end
# "A" means the user cancelled the preorder before clicking "Confirm" on Amazon Payments.
if params['status'] != 'A' && @order.present?
response = AmazonFlexPay.pay('12.99', 'USD', 'senderToken123')
redirect_to :action => :share, :uuid => @order.uuid
else
redirect_to root_url
end

end

Lastly would I put the price variable in the first parameter? and what exactly goes in the 3rd parameter? Thank you again for your patients and I hope to hear from you soon! Thank you!

from selfstarter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.