Comments (3)
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.
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-KeyOnce 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.
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)
- Functionality for custom payment option? HOT 1
- jquery-ui update HOT 1
- Bundle install HOT 4
- Depecration Warning during rake db:migrate HOT 2
- Asset path issue in Heroku HOT 1
- How do I use this for my own funding project ?
- Add a service of integrate continuous
- Test suite is failing
- have a problem
- is this still being maintained? HOT 3
- Working App??
- Error on loading page
- undefined method `environment' HOT 2
- Microdonation?! HOT 1
- User specified / flexible contribution amount HOT 1
- How do I build it on a 3rd party hosting platform HOT 2
- file gets downloaded in safari
- selfstarter.us website down "Application Error" HOT 1
- Use as an engine? HOT 1
- RSpec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selfstarter.