如何在paypal完成付款后检索详细信息 [英] How to retrieve details after payment done in paypal

查看:71
本文介绍了如何在paypal完成付款后检索详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码,我实现了paypal但是我无法在支付

this is my code,i had implemented paypal but i cant able to retrieve user details after paying

'Pay pal process Refer for what are the variable are need to send http://www.paypalobjects.com/IntegrationCenter/ic_std-variable-ref-buy-now.html

Dim redirectUrl As String = ""

'Mention URL to redirect content to paypal site
redirectUrl += "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" & Email

'First name I assign static based on login details assign this value
redirectUrl += "&first_name=" & Name

'Product Name
redirectUrl += "&item_name=" & "Tour Package"

'Product Amount
redirectUrl += "&amount=" & Totalprice

'Business contact paypal EmailID
redirectUrl += "&business=" & Email
'  redirectUrl = +"&address_street=" & Address
'redirectUrl = +"&address_city=" & City
'Quantiy of product, Here statically added quantity 1
redirectUrl += "&quantity=1"

'If transactioin has been successfully performed, redirect SuccessURL page- this page will be designed by developer
redirectUrl += "&return=" + ConfigurationManager.AppSettings("SuccessURL").ToString()
redirectUrl += "&rm=2"
'If transactioin has been failed, redirect FailedURL page- this page will be designed by developer
redirectUrl += "&cancel_return=" + ConfigurationManager.AppSettings("FailedURL").ToString()

Response.Redirect(redirectUrl)

推荐答案

I建议您阅读 PayPal文档 [ ^ ]和下载示例代码 [ ^ ]。



注意:字符串连接(由您使用)不正确

为什么? 字符串 [ ^ ]是不可变的!请参考:为什么字符串是不可变的,什么是它的含义是什么? [ ^ ]
I'd recommend you to read PayPal documentation[^] and download sample code[^].

Note: string concatenation (used by you) is incorrect.
Why? String[^] is immutable! Please, refer this: Why strings are immutable and what are the implications of it?[^]


这篇关于如何在paypal完成付款后检索详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆