【问题标题】:Parsing Output from Stripe return Stripe Payments从 Stripe 解析输出返回 Stripe Payments
【发布时间】:2014-04-17 19:04:25
【问题描述】:

我正在使用支付网关条带。我已经实现了这一点,但我无法解析返回支付数组。我有 print_r() 这个和数组结构真的很难被我解析。

请建议我解析这个数组。

【问题讨论】:

    标签: payment gateway


    【解决方案1】:

    无论返回什么,请用 json_decode 解析它,你会在 php 中得到一个 assoc 数组,即假设返回数组是 $ret

    $ret = json_decode($ret); 
    
    $ret->paid;
    $ret->captured;
    $ret->card->id; 
    and so on..
    

    希望对你有所帮助。

    (Parsing Output from Stripe_Charge Stripe Payments)

    【讨论】:

    • $ret = json_decode($ret);这个帮助我得到这个数组
    猜你喜欢
    • 1970-01-01
    • 2015-04-02
    • 2021-12-27
    • 2017-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-27
    • 2020-06-26
    相关资源
    最近更新 更多