在paypal上使用自适应付款设置商家名称和标题图片

时间:2013-05-04 09:28:08

标签: ruby-on-rails paypal paypal-sandbox paypal-adaptive-payments

为了确保一致的体验,我想在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 
    }
  }])
)

问题是它不起作用 - 我没有看到任何商业名称或图像,我在左栏看到通用名称(带有项目和流程的名称不要求送货地址)。

paypal-generic-message-no-item-details

你能告诉我吗?

1 个答案:

答案 0 :(得分:0)

您也可以登录PayPal,然后转到我的销售工具并更新自定义付款页选项,以创建一个新的页面样式,其中包含您选择的颜色组合和徽标(那里)是徽标图像的大小限制)

相关问题