0

Just wondering if it is possible to setup an off-site payment from the terminal. I've already created a custom module for a custom offsite payment method for standard user checkout process. I also need to add this option to the terminal so it can be used by Admins when creating an order in the backend

Is that doable?

Just to note, I'm a Drupal beginner so I may have missed something obvious.

  • Welcome to Drupal Answers! Have you thought to add Drush integration to your module, or using Drush is not one of your possibilities? – kiamlaluno Feb 21 '14 at 11:50
  • It is a possibility to use Drush. What do you have in mind tho? – belinea Feb 21 '14 at 12:05
  • Drush is a command-line tool; if your module integrates with Drush, you could have a command line like drush off-payment [...]. – kiamlaluno Feb 21 '14 at 12:31
  • But can you explain why this way? Do you mean by this Drush is the only method to do an offsite call like this from the terminal? I didn't use Drush to do frontend checkout payment. Would prefer to keep the code consistent and not have terminal and frontend working differently. So can you explain why you suggest Drush? – belinea Feb 21 '14 at 12:46
  • 1
    Because Drush is the command line tool for Drupal...but I suspect there's a misunderstanding here - what is your definition of "terminal" in this question? As programmers/sysadmins we obviously think you're referring to a command line terminal, but I get the feeling that's not what you meant? Please clarify – Clive Feb 21 '14 at 13:16
0

This isn't doable, unfortunately, because it would require a redirection process that is currently only supported by the checkout form. If it's a requirement for a site, I'd pursue a way for administrators to use the checkout form like a normal customer and submit payment being redirected from there instead.

| improve this answer | |
  • Thanks, I'd very much like to pursue such a way. Is there one tho through an existing module? – belinea Feb 24 '14 at 9:40
  • Nope. You'd have to write it, but ultimately I think you would have a much easier time doing what I recommended above re: the checkout form. – Ryan Szrama Feb 24 '14 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.