zoukankan      html  css  js  c++  java
  • PayPal Express Checkout Button 快捷支付在OPENCART中的使用

    参考:https://blog.csdn.net/shenenhua/article/details/102544931

    第1步:登录 OpenCart 后台,找到 “Extensions” > “Payments”找到“PayPal Express Checkout”,启用它。

    第2步:从官网找到密钥, 填入 “API Details” 中对应的 API Username, Password, Signature

    注:API 密钥获取地址: https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run

    第3步:设置基本信息

    Test Mode:是否开启沙盒模式 No

    Debug Logging, 记录相关技术报错

    Transaction Methods: Sale(直接销售), Authorization (预授权), Order (订购)

    Total: 单笔最少结算金额

    Geo Zone:All Zones

    Default Currency: 默认货币

    Status:Enabled (使用该模块)

    Sort Order ,0 (0 最高优先)

    Allow Customers to cancel Profiles (适用于 Recurring Payment 周期付款的客户, 是否允许他们在网站取消 “周期付款”.)

    Allow Notes, 是否允许买家留言

    page background color

    Logo, 公司标示

    下面是最关键的地方了

    找到服务器中OPENCART的安装文件:

    /catalog/view/theme/default/template/checkout/cart.tpl
    

    在第127行处的<div class="pull-right">的后面,添加如下代码:

    1.  
      <a href="http://www.你的域名.com/index.php?route=payment/pp_express/express" title="PayPal Express Checkout" style="text-decoration:none;">
    2. <img src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png" alt="PayPal Express Checkout" style="float:left;"></a>

    缓存刷新,大功告成。

    3.0 在购物车设置按钮:
    /catalog/view/theme/default/template/checkout/cart.twig

    <div class="pull-right"><a href="{{ checkout }}" class="btn btn-primary">{{ button_checkout }}</a>
    <a href="/index.php?route=extension/payment/pp_express/express" title="PayPal Express Checkout" style="text-decoration:none;">
    <img src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png" alt="PayPal Express Checkout" style="float:left;"></a>
    </div>
    在 详情页设置按钮:
  • 相关阅读:
    Django ajax 实现 loading 效果
    K8S service 简单介绍
    K8S Pod 生命周期 (二)
    异度之刃 Xenoblade 后感
    Nested Prefab Mode 嵌套预制体 保存问题 Dirty
    GIT速成
    Surface电池阈值
    如何删除通知栏无效图标(重置任务栏通知区域)
    Mouse For Winpad
    Re:LieF ~親愛なるあなたへ~ 后感
  • 原文地址:https://www.cnblogs.com/alex-13/p/13672948.html
Copyright © 2011-2022 走看看