For example the Facebook advertising payment. How do they do it? User put credit card detail on them, and they will charge it automatically. Do the use third party payment gateway.
How can you do it with paypal? Some kind of preapproved payment?
Short of recurring payments which are pre-set amounts on a regular interval you need to have a way in which to charge people on an ongoing basis. For very large companies, like Facebook, they simply build a high security network to house credit card information and charge it as needed per their terms. For most businesses however this is not feasible as the security requirements to obtain the proper PCI compliance are simply cost prohibitive.
Instead working with a more premium merchant provide you can often setup a system where you transmit an initial payment and are given a key for which to reference future payments. This key allows you into their locked system to run approved payment requests without holding any credit card data. Of course there are many terms around this sort of billing to insure you are legitimately charging and to insure users know the charge is coming.
When a user enter his credit card details, the details will be check acroos with the credit card providers database. I think for that we have to use some API of the providers. Some times they users will be redirects to the providers website. But once I tried to purchase a domain name from a registrar i will redirects to the HSBC payment details. I don't know in detailed because i am not little bit unaware of the things.
Tips for negotiating a repayment plan or making other arrangements with your lender.
Determine if and how how much you can pay: Review your finances to determine if it's feasible to continue making auto loan payments. If you can continue making payments, identify an exact amount if you must pay less than your current payment amount. Make notes so you won't get off track when contacting your auto loan company.
Contact your lender immediately: Auto loans are secured by your vehicle, which gives the lender the right to repossess your vehicle for non payment. As soon as you know you're going to miss a payment, call your lender to negotiate affordable loan terms. Answer your lender's questions honestly and avoid being defensive or rude.
Be Proactive: Offer what you can afford to pay today. Ask your lender about repayment plans or loan modification options. Affirm your commitment to making payments and bringing your auto loan payments current. Don't make promises you cannot keep; this will only escalate your problems.
Finding Sources of Cash: If you're employed and a homeowner, you may be able to qualify for a home equity loan or line of credit that provides cash for catching up or paying off your car loan. Be careful of "robbing Peter to pay Paul," as consumer loans such as cash advances from credit cards and pay day loans often carry high finance charges and can lead to more debt. Instead, have a garage sale or consider listing items for sale online.
Review your spending habits: Look at your household expenses and see if you can cut back anywhere to raise funds for paying your auto loan.
401(k) loan: If you're contributing to a 401(k) plan, you may be able to take a loan against it through your employer. Contact your human resources office for more details. Borrowing against a 401(k) account is preferable to withdrawing funds, as there may be penalties and additional income taxes involved.
Auto loan modification: Your lender may agree to modify your auto loan by adding past due payments to the back of the loan and adjusting your payment due date. This is best negotiated when you've gotten a job or can otherwise afford to make payments, but need help in getting caught up.
PayPal offers a service for billing at a future date variously named "Preapproved Payments" or "Reference Transaction". Note that PayPal will have you submit an application for approval since it does not offer this service to everyone.