douchenhui5569 2015-03-30 22:25
浏览 38
已采纳

使用PHP将FedEx添加到购物车

Will apologize if this has already been asked. Please post a link if it has been. I need to add shipping to a shopping cart I created. What I want to have is when someone views their shopping cart, there will be a drop down menu with different shipment options (ground, over night, etc) and the cost for each one. Then, after the customer finishes paying, a shipping label will be produced for the package(s).

I've looked at the FedEx developers site, and searched for help on this, but haven't had any luck.

Thanks in advance for the help

Mike

  • 写回答

1条回答 默认 最新

  • douyeyan0650 2015-03-31 22:58
    关注

    FedEx offers different web services that you can use. For displaying rates during the checkout process, you can use their Rate endpoint, see https://www.fedex.com/us/developer/web-services/process.html?tab=tab1. For purchasing labels, you need to use the Ship Service, see https://www.fedex.com/us/developer/web-services/process.html?tab=tab1#app-tab2.

    If you're looking for a simpler solution, you can use Shippo (https://goshippo.com). It's a REST API for FedEx that offers a dedicated Rate and Label creation endpoint and has a convenient PHP api library. I'm happy to help if you have further questions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 MATLAB联合adams仿真卡死如何解决(代码模型无问题)
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改