如何在我的 Flex 4 Web 应用程序中使用 google checkout 功能?

发布于 2024-10-06 07:29:12 字数 117 浏览 1 评论 0原文

现在我正在开发一个flex应用程序(应用程序服务器是apache + PHP + mysql)需要集成google checkout功能,但是google checkout没有flex SDK可以使用,我该怎么办?谢谢。

Now I am developing a flex application (app server is apache + PHP + mysql ) what need integrate with google checkout function ,but the google checkout has not flex SDK to use ,what should I do ?Thanks .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谎言 2024-10-13 07:29:12

标准谷歌结账的问题是你去谷歌结账。这可能会让客户感到困惑,并且当人们进入 Google Checkout 后未完成订单时,您将损失销售额。

更好的方法是构建/找到一个简单的订单系统后端和一个灵活的购物车前端。订单流程将使用 1 个 php 脚本进行如下工作...

  1. 客户将商品放入购物车 (flex) 并选择结账。
  2. 购物车中的数据将被传递并存储在您的订单系统 (mysql) 中,并给出 orderID。确保您有 order_status 列并将其设置为“pending”。
  3. 现在,使用 Google Checkout API,您可以传递客户信息、帐单、运费、订单总额以及您希望 google 作为结果的一部分传回给您的 orderID。这一切都将使用 API 和 php 脚本在幕后完成。
  4. Google 的 API 将做出响应,您可以将该响应存储在订单数据库中,并将状态更新为“新订单”或“已拒绝”,并将所有额外反馈存储在另一列中,以便您在客户致电时想要查找订单被拒绝的原因。
  5. 现在在脚本中输出来自 google 的响应... echo $response;
  6. 在 Flex 中,您将听取响应并向客户表示“谢谢!”可能带有 orderID 的页面。如果 google 还没有为您发送电子邮件,那么使用相同的 PHP 脚本发送电子邮件也是一个好主意。

指向 google checout 和 api 文档的链接
Google Checkout:custom_cart
Google Checkout:custom_processing

我做了类似的东西,但使用的是贝宝支付专业 API。为了节省您的时间,您可能需要寻找一个预构建的购物车,您可以仅将其用于后端订单和产品系统。您也许还可以找到一个灵活的购物车来使用。目标是使流程与您的定制无缝衔接,这样他们就无需离开 Flex 应用程序。单击结账,填写表格(账单、运输)...进度条/图标旋转,结果弹出,并表示感谢。

The problem with standard google checkout is you go to google to checkout. That can confuse customers and you will lose sales when people don't complete the order once they get to google checkout.

The better approach is to build/find a simple order system backend and a flex shopping cart front end. The order process will work as follows using 1 php script...

  1. The customers places items in the cart (flex) and chooses to checkout
  2. The data from the cart is passed and stored in your order system (mysql) and given an orderID. Make sure you have an order_status column and set it to "pending".
  3. Now using the Google Checkout API you pass the customer's infomation, billing, shipping, order total and the orderID that you want google to pass back to you as part of the results. This will all be done behind the scenes using the API and a php script.
  4. Google's API will respond and you store that response in your order database updating the status to "New Order" or "Declined" and store any extra feedback in another column in case you want to lookup why an order was declined if a customer calls.
  5. Now output the response from google in your script ... echo $response;
  6. In Flex you will listen to the response and show the customer a "Thank You!" page with maybe an orderID. Also a good idea to send an email in that same PHP script if google doesn't already do it for you.

Links to google checout and api docs
Google Checkout: custom_cart
Google Checkout: custom_processing

I made something just like this but using paypal's payments pro api. To save you time you may want to look around for a prebuilt shopping cart that you can use just for it's backend order and product system. And you may be able to find a flex shopping cart to use as well. The goal is to make the process seamless to your custom so they never need to leave the flex app. The click checkout, fill out the form (billing, shipping) ... progress bar/icon spins, results pops up with a thank you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文