Jump to content

Remote order form and payment capture using API


Recommended Posts

I'm trying to setup a remote order form (on another domain) to capture recurring billing subscriptions & not quite sure the best way to go about it...

It appears that using the API I have to

  • Create a new client (AddClient)
  • Add a payment method for the new client (AddPayMethod )
  • Create a new order for the new client (AddOrder)
  • Accept that new order (AcceptOrder)

Then what?  At some point an invoice has to be generated and the payment captured (CapturePayment) I don't see anything that indicates if the invoice is automatically created when the order is created or accepted.
What is the actual sequence of events that needs to happen here?

 

**OR**

Is it possible to skip all that and create a custom branded template just for that particular subscription item and embed that (iFrame or something) in the remote site?

-thanks

-sean

 

Link to comment
Share on other sites

Per the AddOrder docs, if you pass noinvoice as true it will not generate an invoice and so if it is not passed it will generate an invoice.    As such to get the invoice paid, after AddOrder, you would use CapturePayment and pass the invoice id given in AddOrder's result.   Then if that succeeds, then you do AcceptOrder. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated