开发者

Programmatically submit drupal ubercart order

开发者 https://www.devze.com 2023-02-19 23:37 出处:网络
I want to post to a php page with a username, password, billing information, product id, and credit card information and do the following:

I want to post to a php page with a username, password, billing information, product id, and credit card information and do the following:

-login or create account using passed credentials -add to cart product id (if I even have to do this, I think I can just build the order with it instead) - checkout and process payment with billing and credit card info

I have tried three different approaches. He开发者_运维百科re is a paste of my latest attempt. When I post to this page I can see the completed order in my drupal admin panel, it shows up as Payment Received. All the billing and credit card info appears in the order info, and the balance shows up at $0 (paid for). As far as drupal is concerned it looks like the order was successful but the card is never charged.

http://pastebin.com/jDzy9x9s

Any help or pointers would be great. Been stuck on this for a few days now.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号