If a user creates one overpayment with the UI inside an invoice, automatically Xero creates, in Bank Transaction, a transaction called "Payment:multiple items". Inside the transaction, Xero UI shows "Transaction: View Transaction" with two areas, one for the Invoice Payments and the other for the Overpayments and Prepayments.
Is possible , with the XERO API, create a bank transaction with Multiple Items?. How it is done?
I tried with the API create an Overpayment through Bank Transaction and a Payment , both with the same Contact, but the UI Bank Transaction menu shows two different Bank Transaction.
Support answered me:
Unfortunately it is not possible to achieve the same thing via API.
In the web interface, you can essentially create overpayment in two
ways, via the bank account screen and also by creating payment that
are larger than the amount owed in an invoice.
With API, the overpayment is created via BankTransactions endpoint, so
essentially the same as the first method in the web UI. However, it is
not possible to post payment amount that are larger than the amount
owed via API.
Related
We currently have a website that uses eWay token payments and setup Auto Order for customers. They can manage what items are in the auto orders and at what frequency the orders will be placed.
After the first order we can save the users 'Token' with eWay and charge their card at each instance.
We would like to add in the ability to pay with PayPal, but cannot see a similar feature where future orders can be placed without the user interacting.
The issue is that the price may differ from original payment, as discounts for the item may change or the user could add in other products to the auto order. So we don't want to have a repeat purchase setup in PayPal, rather automatically charge the users account when needed.
Been looking through paypal API docs and nothing is jumping out as the correct way to proceed.
We have tried payments through eWay to PayPal however they are not supporting paypal through their gateway anymore so are not much help.
Our website is PHP, Mysql driven and we currently use PayPalExpress checkout API for single orders.
For PayPal, the receiving account needs a feature called "reference transactions". This is not enabled by default in the live environment (though it is in sandbox). It requires business approval, so the PayPal account owner should contact PayPal's general customer support or an account manager (note: not technical support) to discuss the business need for the feature.
Once approved for the "reference transactions" feature on a live business account, PayPal can guide you on which API to best integrate to make use of this. Something like v2 or v3 vault and that API's payment tokens are a possibility that sounds exactly what you are describing, though there are other (older/legacy) APIs that use something called a "billing agreement" as what's effectively a token as well.
I have integrated stripe in to my application.
Now i want to store the payment history in to my database.
Using stripe APIs, i can create new subscription as well as update that subscription.
Now say i have one subscription for one month for $20 and after few days i am updating to sixmonth for $60. So as per stripe logs it will deduct $40 while updating plan.
I want to store all these payment process along with subscription periods in to my database.
How can i do that. Is that any API for it?
You can use webhooks to get notification from Stripe whenever any event happen.
So you need to create a webhook for charge.succeeded. So that you can get notification for all the successful charges happen. You can get amount, customer data inside the event data which you can store to your DB. I assume you are already storing subscription along with customer, so that you can map subscription from customer data from event data.
I'm currently implementing a payments platform for my website which is very similar to Stripe, but I still can't understand the process or how should I use WebHooks since I need to specify one on my account in the payments platform.
So let's say a person pays on my website for a product that costs $5, I take them to the payment form where they will introduce credit card details. Now when they click "Pay Now" everything gets verified via javascript/jquery and sent to my server and I'm able to charge the user successfully and see it reflected on my Sandbox from my account on the payment platform. Where or when should WebHooks be used or called, or why do I need them?
Thanks in advance
Webhooks are a way to communicate with your application. With many APIs, you send them a request and the API response is included in the response to your request. But what if the request you make is asynchronous, or if for some reason the API you're using wants to be able to communicate with your application by calling it directly as opposed to waiting for you to make the request.
With webhooks, you'd open an endpoint on your application that the other API / service can send requests to so that you can process their requests. You can almost think of it as push notifications for web applications.
With payments the standard use case for webhooks is to handle subscription renewals. So a customer would sign up today and you'd now in response to your createSubscription call whether or not the subscription was created successfully, but how do you know whether or not the subscription renewed successfully? You could either just poll the payments API over and over again, or the payments API can send you a webhook event saying the subscription renewed and in your webhook handler logic you can handle what to do internally (like send a receipt, update some db fields, etc)
Imagine when you book a hotel room on a travel website. You select the check-in date and check-out date, the website calculates the price and you click on the pay button. Stripe takes care of the payment process.
Now since you booked a hotel room, the website has to save that booking details in their database to make sure that room is reserved for you on certain days so that someone else cannot try to book the same room on those days. Before the website reserves that room for you, it has to be sure that your payment process is successfully completed. Stripe uses webhooks to notify the website and actually, website is subscribed to listening for checkout.session.completed event by stripe. Once the website receives that notification then it will book your room.
I am going to set up a website that will use paypals reoccuring billing. The question I have is if I have over 3000 customers, for example, how do I make it more simple for me to print out their addresses where to ship the product instead of doing it one by one?
I am not going to use Paypal api for this but instead direct link to paypal as such described in this video
http://www.youtube.com/watch?v=jHC9BoRDEOY&feature=youtube_gdata_player
If I was to set something up like this, I would uses PayPal's IPN feature to record all of the transactions, transaction details and profile details for these recurring profiles in my database. Then I would create my own system for running reports or a query against my Database, and then display the information in what ever format I would want.
Instant Payment Notification (IPN) is a message service that notifies you of events related to PayPal transactions. You can use it to automate back-office and administrative functions, such as fulfilling orders, tracking customers, and providing status and other information related to a transaction.
There is more on IPN here.
Is it possible to make Paypal payments using stored user's data (credit card info, name, address etc.) within cron job or other script execution without actual user present?
I want to implement autopayments on my service but I can not to use standard Paypal autocharge functionality because of its complexity.
What you're looking for is called Reference Transactions. You can use the DoReferenceTransaction API to accomplish your goal.
Using this API you simply pass in the transaction ID of a previous Authorization or Sale transaction along with a new amount you'd like to process. It will lookup the billing info saved on PayPal's system using that previous transaction ID, and then process the same source for the new transaction.
This works with both Payments Pro and Express Checkout.
I noticed you posted this with the adaptive payments tag, too. That would be the Preapproval API and the Pay API, but would not involve DoDirectPayment.