为了确保一致的体验,我想在 paypal 的页面上设置标题图像和业务,查看项目及其名称和描述,并要求客户选择送货地址。
我正在使用 active_paypal_adaptive_payment gem ( https://github.com/jpablobr/active_paypal_adaptive_payment ) 和 set_payment_options 的选项:
response = ADAPTIVE_GATEWAY.setup_purchase(
:action_type => 'CREATE',
:receiver_list => recipients,
...
)
ADAPTIVE_GATEWAY.set_payment_options(
:display_options => {
:business_name => 'Big Business',
:header_image_url => 'url goes here'
},
:sender_options => {
:require_shipping_address_selection => true },
:receiver_options => [{
:description => _description,
:invoice_data => {
:item => [{
:name => _title,
:item_count => 1,
}],
:total_shipping => 10.0,
:total_tax => 10
},
:receiver => {
:email => email
}
}])
)
问题是它不起作用 - 我没有看到任何企业名称或图像,我在左栏中看到通用名称(带有物品且流程不要求提供送货地址的名称)。
您能否提一些建议?