We are sending a payment and Invoice to QuickBooks (desktop) via Ipp.
The payment is linked to the invoice. If the invoice fails (say some item on invoice missing in QB), the payment still goes through.
Can we make the payment posting to QuickBooks fail if the parent Invoice posting failed?
Related
I am trying to integrate the Xero API into an application I am working on. I have the ability to get the invoices as well as set up new payment.
I want to make it so that customers can come online and pay their invoice using Go Cardless and then mark the invoice as paid once the payment has gone through.
Can I do this using the API or will I need to integrate the Go Cardless API in order to do this and then once it's successful it then marks the payment as complete?
Not sure about Go Cardless.
But once the invoice is paid through your app, you need to make sure that you write back information to Xero to make that invoice status change to Paid.
You can do it through Invoices and Paymnets Endpoint.
You need to add Payments against that Invoice ID. once the invoice is fully paid, status of that will change to PAID.
Apply payments to approved AR and AP invoices
More information on request object for Payments Endpoint:
Payments
More Documentation for Invoices
Wondering if there's a way to retrieve the Billing Agreement ID from Payment via PayPal API? That is, associate a customer w/ a payment? The scenario is that I retrieve a list of payments that have been made for the day. For example,
oPmtHistory = Payment.List(oApiContext,....)
and from the list of payments in the PaymentHistory object, I can determine what payments belongs to which customers. Retrieving the payer in the Payment object doesn't appear to be the most reliable way to get the customer associated w/ a payment.
Payment is created using IOS SDK. Invoice field is set on payment - and it is returned in payment confirmation (on IOS). When I request for payment using this API https://developer.paypal.com/docs/api/#look-up-a-payment-resource on server, it is returned with transactions, payer etc, everything but invoice field (also tried with custom field). Using sandbox API. How can I get invoice number/custom field by payment id?
Dave from PayPal here.
Contrary to what I posted just a moment ago about a possible PayPal server bug, we've now done a bit more investigation.
The invoice-number and custom fields should be coming through just fine for PayPal payments. However, if you try a Credit Card payment you will not currently see these fields. The credit card issue should be resolved within the next few weeks.
I'm trying to check how the paypal invoice looks like when it send email to the payer, however, the api doesn't seem to send the email. In the api response, there's a Invoice Url, I was able to see it but it requires the payer to login. Does the API send an email to payer's email or not?
From the PayPal Invoice API docs:
To use the Invoicing API to request payment, you start by making one of the Invoicing API calls to PayPal. Your customer receives the invoice via email and clicks on an included link to view the invoice on PayPal's website. Customers who have a PayPal account can log into their PayPal accounts to pay the invoice. Customers can also pay using a check, debit, or credit card.
(https://developer.paypal.com/docs/classic/invoicing/gs_Invoicing/)
As long as the "ack" field in the JSON response from the API shows "success" as value, an email will be sent by the buyer. He or she has to click the link and login to complete the payment.
Example JSON response:
{
"responseEnvelope": {
"timestamp": "2011-06-16T:12:30.861-07:00",
"ack": "Success",
"correlationId": "78733df04b1f0",
"build": "1942837"
},
"invoiceID": "INV2-C4AK-UU3J-5SCL-9KZY",
"invoiceNumber": "1192",
"invoiceURL": "invoiceURL"
}
so the answer to your question is YES;
Try sending yourself (or another account you control) an invoice. This will give you an idea of what the invoice looks like.
I can't find any document on PayPal page.
This is my situation,
I choose 'Cart checkout' method for my site.
Customer check out by clicking form submit button.
Customer's paid and signed-up the subscription.
Paypal sent IPN back to the server. Notify the sign-up is completed.
The server is down.
The server is up again, and can't get the IPN.
The problem is I have a link to paypal if customer has not paid it by checking transaction status. In the situation above customer can make a duplicate subscription ($100/month instead of $50/month), I just want to cancel old subscription before create a new one.