2014-06-05 153 views
0

我是新的貝寶付款過程。 我已經使用'paypal-sdk-merchant'gem進行付款。貝寶交易不會登錄貝寶賬戶

的沙盒帳戶:

when I have completed payment via credit card then I am able to see my transaction in receiver account , but amount do no deduct from buyer account. 
when I have paid via paypal account then I am able to see my transaction in receiver account as well as buyer account. 

我對通過PayPal賬戶支付代碼:

@set_express_checkout = @api.build_set_express_checkout({ 
    :SetExpressCheckoutRequestDetails => { 
    :ReturnURL => url_for(:action => 'success'), 
    :CancelURL => url_for(:action => 'payment_methods'), 
    :PaymentDetails => [{ 
     :OrderTotal => { 
     :currencyID => "USD", 
     :value => params[:payment][:amount] }, 
     :ItemTotal => { 
     :currencyID => "USD", 
     :value => params[:payment][:amount] }, 
     :ShippingTotal => { 
     :currencyID => "USD", 
     :value => "0.0" }, 
     :TaxTotal => { 
     :currencyID => "USD", 
     :value => "0" }, 
     :NotifyURL => "", 
     :PaymentDetailsItem => [{ 
     :Name => params[:payment][:payment_for], 
     :Quantity => 1, 
     :Amount => { 
      :currencyID => "USD", 
      :value => params[:payment][:amount] } }], 
      :PaymentAction => "Sale" }] } }) 

    # Make API call & get response 
    @set_express_checkout_response = @api.set_express_checkout(@set_express_checkout) 
    # Access Response 
    if @set_express_checkout_response.success? 
    @set_express_checkout_response.Token 
    session[:payment_params] = params[:payment] 
    redirect_to @api.express_checkout_url(@set_express_checkout_response) and return 
    else 
    @set_express_checkout_response.Errors 
    end 

如果你沒有得到它,那麼我可以進一步談。 請幫助我,以獲得我的交易在貝寶帳戶。

回答

0

您的信用卡交易不會從付款人的PayPal賬戶提取資金,因爲您的測試付款人使用信用卡付款,而不是PayPal賬戶。您的確認是ACK =成功,資金出現在收款人賬戶中。