gpt4 book ai didi

ruby-on-rails - ruby on rails 中的 Payflow 支付集成

转载 作者:太空宇宙 更新时间:2023-11-03 15:59:01 27 4
gpt4 key购买 nike

我正在使用 paypal 进行支付,这里是用于支付的主要函数和参数。

def self.paypal_url(.....)
values = {
:business => 'email@id.com',
:cmd => '_cart',
:upload => 1,
:return => return_url,
:invoice => "#{customer.id}_#{sType.id}_#{Time.now}",
:notify_url => notify_url
}
values.merge!({
"amount_1" => amount,
"item_name_1" => sType.show_title,
"discount_amount_1" => discount
# "quantity_1" => '1'
})
"https://www.paypal.com/cgi-bin/webscr?" + values.to_query
end

但现在我想使用 PayFlow。请指导我必须更改哪个参数以及支付的最终 url 是 "https://www.paypal.com/cgi-bin/webscr?"+ values.to_query.

请指导我?

最佳答案

在 git 上有一个带有托管页面的 payflow pro 的 Rails 示例: https://gist.github.com/supairish/5872581

该代码获取要在您 View 中的 iframe 中使用的 token 。

你可以在这里看到一个例子: https://developer.paypal.com/docs/classic/payflow/gs_ppa_hosted_pages/

我还发现此资源很有帮助:如何使用托管页面测试我与 Payflow Gateway 的集成?www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1493

关于ruby-on-rails - ruby on rails 中的 Payflow 支付集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36839140/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com