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.

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

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?