【问题标题】:Using ci merchant for CodeIgniter how to integrate stripe payment gatewayCodeIgniter 使用 ci 商家如何集成条带支付网关
【发布时间】:2014-11-20 12:24:27
【问题描述】:

对 CodeIgniter 使用 ci 商人。如何集成Stripe支付网关,如何传入default_settings()purchase()方法? 我试过谷歌但没有发现任何有用的东西。 请帮帮我。

【问题讨论】:

    标签: php codeigniter stripe-payments


    【解决方案1】:

    ci-merchant 不再维护。请改用Omnipay

    【讨论】:

    【解决方案2】:

    -> 下面的代码对我很有用

    $this->load->library('merchant');
    $this->merchant->load('stripe');
    
    $token = array('number' => '4242424242424242', 'exp_month' => 8, 'exp_year' => 2018);
    
    $params = array(
        'token' => $token,
        'amount' => 100.00,
        'currency' => 'USD',
    );
    
    $response = $this->merchant->purchase($params);
    

    【讨论】:

      猜你喜欢
      • 2015-12-26
      • 2012-04-06
      • 2017-04-26
      • 2019-05-30
      • 2017-02-28
      • 1970-01-01
      • 2015-10-14
      • 2019-10-16
      • 1970-01-01
      相关资源
      最近更新 更多