Programmatically Settling a request by Amazon's REST API - php

I am (developer) using amazon marketplace payment for transaction. For this i am using marketplace fee enabled button (http://docs.aws.amazon.com/AmazonSimplePay/latest/ASPGettingStartedGuide/nomktplc.html).
I want charge a sender's card at a later point so I am using settle (advance feature of amazon marketplace fee enabled button). To settle the transaction I am trying to use this (found at http://docs.aws.amazon.com/AmazonFPS/latest/FPSMarketplaceGuide/Settle.html)
" https://fps.sandbox.amazonaws.com?Action=Settle&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&ReserveTransactionId=14GKD9GE66FAA63E6O6B2JDPZKN53LZ7F22&SignatureMethod=HmacSHA256&SignatureVersion=2&Signature=SJJLsIBghi7VIycBjX7c3hnfgZ%2FBvZbzqLtAZXDL8ys%3D&Timestamp=2009-10-06T07%3A53%3A11.750Z&TransactionAmount.CurrencyCode=USD&TransactionAmount.Value=1&Version=2008-09-17 "
My question regarding this request is
How should I use it.
From where should I call this - the browser or as a normal api call.
If it is done by api then what steps should I follow?
I made this call directly from the browser but it is always showing
'SignatureDoesNotMatch' error.
Please suggest what i should do? Any help will be highly appreciated.

The Amazon Simple Pay solution you are using gives you a very simple HTML integration. The browser does the magic here.
The Amazon Flexible Payment System (FPS) however is an API which is designed to be used by server side code (even though it could be used by JavaScript). You will have to create and properly sign requests to automate this integration. This is considerably more complex than just putting an ASP snippet into your page. I suggest you start here:
What Is Amazon FPS <- good starting point
FPS Sandbox <-- a browser playground for FTP calls

Related

accept payment from credit card(Magento 1.9.4.2) php

The Magento 1.9.4.2 has deprecated the Credit Card payment method, so I've decided to get the config.xml and system.xml from older version which is 1.8. It works btw.
My question is, once the customer input their credit card info, I want the bank(gateway for development) to verify it(I'm using a devsecure gateway service URL). My teacher told me to use cURL to do it but I am worried about how I'm going to do it. I'm new to Magento as well as PHP that's why I have no idea what to open to the directory. I am completely lost.
I don't know where to implement the cURL, in system.xml??cause it's where the Credit card functionalities are located at
Magento has deprecated the Card Method in v1 for a reason. It was usually set to storing the card details which is not a secure way nowadays, as now everything is tokenised.
Every card provider has an API (not sure what devsecure is and how it is working, some docs would be useful).
What you should do, is create a custom module for the payment gateway (full fledged module) that actually handles the authorisation/charging aspect.
There are plenty of open source examples that would allow you to replicate some functionalty.
As it stands now the question doesn't provide enough details to help. Generally you need a custom module with a Payment Model for devsecure. the charging aspect would be handled using simple cURL requests within the module, or you could load a library like Guzzle to handle the HTTP requests.

How do I onboard a submerchant in Braintree? [PHP SDK]

In PHP, I am developing an application that is going to use the Braintree Marketplace functionality - for users within my platform to be able to handle escrow transactions for projects they post. I understand the code on how to do actual transactions, but I am having issues on the sub-merchant process and where that necessary code is supposed to go.
I have looked extensively on how to onboard sub-merchants with the code from their documentation, but where am I supposed to put all this? On its own separate page? The only coding example is the very basics here on Github. I need to be able to create these sub-merchants so that I can test escrow within their Sandbox.
It turns out that what I was trying to do was a limitation of Braintree itself. At that time, you were not able to test escrow transactions within their Sandbox. Not sure if that has changed over the past year.
For those looking for a much better payments API, check out Stripe instead.

Webhooks for Amazon MWS

I am just going through Amazon MWS documentation and have explored their PHP Client Libraries.
It seems that for every section they have provided a separate SDK. I wonder if there is any compiled API so that we can just include it in our project and use.
The main concern i have is for instance i somehow managed to list my products to Amazon using MWS API. Now how would i know if there is any order recieved. I want to integrate it in my system that every time a new order arrives i should be get notified of it without manually calling the ListOrders. Do they have any sort of Webhooks ?
At Webgility, we've been integrating with the Amazon MWS APIs for half a dozen years or more now. They are unfortunately not as easy to work with as one might hope. Data volume is throttled, a complete information set requires multiple calls, and to answer your question: there are no Webhooks we're aware of.
We're helping ecommerce sellers process hundreds of thousands of Amazon orders a month (sometimes per week), but are still dealing with the API issues you're coming upon.
You might have a look at the Amazon MWS Subscription API.
https://developer.amazonservices.com/gp/mws/api.html?group=subscriptions&section=subscriptions

what are webhooks? what is its use?how can i use it in my woocommerce wordpress site?

I would like to know the following things about the web-hook,
1. Actually what are web-hooks and what is its functionality?
2. I have a woo-commerce word-press site, how can i make use of the web-hook in my android app for my woocommerce sie?
3. For integrating web-hooks in android application which have a woo-commerce site what all things i need to do?
Can anyone help me please..
Thanks in advance..
From WooThemes WebHooks Documentation,
What are Webhooks?
A Webhook is essentially an event
notification sent to a URL of your choosing. Users can configure them
to cause events on one site to invoke behaviour on another.
Webhooks are therefore very useful for integrating with third party
services and other external API that support them.
The site goes on to explain how to manage web hooks and gives some examples that could be useful.

Is it possible to integrate with Sagepay Virtual Terminal using PHP?

I'm crating a Sagepay Direct implementation for a client, which deals with taking deposits and payments, as well as refunding deposits. This is fine for online payments, but the client also takes phone payments through Sagepay's Virtual Terminal.
I would like to handle these payments through my system, which would allow a higher percentage of the refunds to be automated but, despite searching Sagepay's resources, Google, and SO, I can't find any information at all on integrating with the terminal.
So, what I would like to know is:
Is it possible to integrate in this way, and if so are there some resources I'm missing?
If there's no official API, would Sagepay implement anything that would prevent automating the process through CURL or a similar technology.
I have worked with Sagepay (both Direct and Form) before and am quite familiar with the online payment side of things, but not familiar with the Terminal.
Okay, so I talked to Sagepay support and the answer is far simpler than I was expecting. I don't need to integrate with Terminal, I just have to use the standard integration and change the value of AccountType to 'M'.

Categories