我正在尝试将PayUMoney支付网关集成到我的客户端站点中.我的客户向我提供了PayUMoney的登录详细信息.我找到了商家钥匙但找不到两者中的任何一个:
PayUMoney为我提供了一个默认值的表单,但是当我测试时,它会给出消息:抱歉发生了一些错误.
这是表格:
<?php
// Merchant key here as provided by Payu
$MERCHANT_KEY = "JBZaLc";
// Merchant Salt as provided by Payu
$SALT = "GQs7yium";
// End point - change to https://secure.payu.in for LIVE mode
$PAYU_BASE_URL = "https://test.payu.in";
$action = '';
$posted = array();
if(!empty($_POST)) {
//print_r($_POST);
foreach($_POST as $key => $value) {
$posted[$key] = $value;
}
}
$formError = 0;
if(empty($posted['txnid'])) {
// Generate random transaction id
$txnid = substr(hash('sha256', …Run Code Online (Sandbox Code Playgroud) 我正在开发一个电子商务应用程序,我想在其中集成Payumoney支付网关.有人可以帮我处理一些程序,链接或教程,怎么做?谢谢.
我是支付网关的新手.目前,我正在开发一个移动应用程序,我需要在Android应用程序中集成PayU支付网关.
到目前为止,我已经为TEST url创建了一个代码,当我运行我的应用程序时,我得到以下异常:
An error occurred. Sorry, some problem occurred.
手机应用截图

这是我的代码:
public class PayMentGateWay extends Activity {
private ArrayList<String> post_val = new ArrayList<String>();
private String post_Data="";
WebView webView ;
final Activity activity = this;
private String tag = "PayMentGateWay";
private String hash,hashSequence;
String merchant_key="JBZaLc";
String salt="GQs7yium";
String action1 ="";
String base_url="https://test.payu.in";
int error=0;
String hashString="";
Map<String,String> params;
String txnid ="";
Handler mHandler = new Handler();
@SuppressLint("JavascriptInterface")
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
final …Run Code Online (Sandbox Code Playgroud) 我试图融入payU到eshop我想不出我在哪里,因为很长一段时间去错了.现在我试图使用这些类https://bitbucket.org/meritoo/zend-framework-payu-integration-library/src
有人遇到过类似的问题吗?我认为它还没有实现,因为我找不到如何将数据发送到payu的情况,因为方法$this->getParameters(true)返回空数组.我在哪里可以为payu设置参数以及如何设置?
是否有任何API允许我们自动将资金转入其他银行账户?我发现我不能用paypal API 完成它.
我在一个银行帐户上有用户资金,在应用程序中执行某些操作后,我需要将这笔钱转移到其他用户银行帐户.
所以,一步一步地总结一下:
User1将钱汇入应用程序银行帐户.
几个小时后,User1通过单击按钮确认对应用程序的某些操作.
在User1点击按钮后,我想自动从应用程序银行账户转账到User2银行账户.
我已经在DB中获得了银行转账所需的所有信息.
我正在寻找API,这将允许我做第三步,无论他使用哪家银行,我都会自动从我的(app)银行账户转账到用户银行账户.
我正在尝试使用 Post Man 等 Rest 客户端工具向 PayU 支付网关发布订单,我也遇到了同样的问题。
我尝试使用 C# 发布,订单创建成功,但响应不符合预期,它应该是一个 json 对象,包含插入的订单 id 和重定向 url ,但当前是 html 响应!
我使用restsharp库的C#代码:
public IRestResponse<CreateOrderResponseDTO> CreateOrder(CreateOrderDTO orderToCreate)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var actionUrl = "/api/v2_1/orders/";
var client = new RestClient(_baseUrl);
var request = new RestRequest(actionUrl, Method.POST)
{
RequestFormat = DataFormat.Json
};
request.AddJsonBody(orderToCreate);
request.AddHeader("authorization", $"Bearer {_accessToken}");
request.AddHeader("Content-Type", "application/json");
var response = client.Execute<CreateOrderResponseDTO>(request);
if (response.StatusCode == HttpStatusCode.OK)
{
return response;
}
throw new Exception("order not inserted check the data.");
}
Run Code Online (Sandbox Code Playgroud)
我使用内置的 C# 代码 …
我必须在我的iOS应用程序中集成PayUMoney支付网关.他们没有适用于iOS的SDK.因此,我必须在webview中加载一些Web URL以进行付款.我的参数是
int i = arc4random() % 9999999999;
NSString *strHash = [self createSHA512:[NSString stringWithFormat:@"%d%@",i,[NSDate date]]];// Generatehash512(rnd.ToString() + DateTime.Now);
NSString *txnid1 = [strHash substringToIndex:20];
NSLog(@"tnx1 id %@",txnid1);
NSString *key = @"JBZaLc";
NSString *amount = @"1000";
NSString *productInfo = @"Nice product";
NSString *firstname = @"Mani";
NSString *email = @"mani.ingenius@gmail.com";
NSString *phone = @"1234566";
NSString *surl = @"www.google.com";
NSString *furl = @"www.google.com";
NSString *serviceprovider = @"payu_paisa";
NSString *action = @"https://test.payu.in/_payment";
NSString *hashValue = [NSString stringWithFormat:@"%@|%@|%@|%@|%@|%@|udf1|udf2|udf3|udf4|udf5||||||salt",key,txnid1,amount,productInfo,firstname,email];
NSString *hash = [self createSHA512:hashValue];
NSDictionary *parameters = …Run Code Online (Sandbox Code Playgroud) 我想将payU支付网关与我的电子商务应用程序集成.我在测试payU上有一个帐户,包含商家ID,密钥和盐.
我正在研究这个演示应用程序,每当我更改参数时merchant key,salt.我得到了error code 5014.
哪个可以是其中之一.
int INVALID_USER_CREDENTIALS = 5014;int JSON_EXCEPTION = 5014;注意:我得到的是
response string:
"Something went wrong : Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject"
我正在尝试调试它.但我找不到合适的文档.
请帮忙.
我正在尝试将payumoney支付网关集成到我的rails应用程序中.
我添加了gem active_merchant_payu_in,但是在此之后我无法启动app "warning: already initialized constant APP_PATH ".. 并且得到这个控制台错误..我发现这个模块来自于activemerchant我安装在我的gemfile而不是这个,现在我的应用程序启动.
根据文档,这是我们设置activemerchant的方式
ActiveMerchant::Billing::Base.mode = :test
::SAMPLEGATEWAY = ActiveMerchant::Billing::TrustCommerceGateway.new(
:login => 'TestMerchant',
:password => 'password')
Run Code Online (Sandbox Code Playgroud)
因此,对于payu我改变了网关下面,但我应该怎么传递的,而不是:login和:password在下面的代码?
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::PayuInGateway.new(
)
Run Code Online (Sandbox Code Playgroud)
对于payumoney我们都有
商家ID,商家钥匙,商家盐
我无法在任何地方找到足够的文档.有人可以对这个话题有所了解吗?
我想在我的Android应用程序中通过PAYU接受付款,但我没有服务器,因此我使用firebase存储数据.从视频https://youtu.be/gnQ0IF3XniM 我设法从视频 中提到的服务器集成PAYU支付网关.我从服务器生成哈希的代码如下:
@Override
protected PayuHashes doInBackground(String... postParams) {
PayuHashes payuHashes = new PayuHashes();
try {
//TODO Below url is just for testing purpose, merchant needs to replace this with their server side hash generation url
URL url = new URL("https://payu.herokuapp.com/get_hash");
// get the payuConfig first
String postParam = postParams[0];
byte[] postParamsByte = postParam.getBytes("UTF-8");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
conn.setRequestProperty("Content-Length", String.valueOf(postParamsByte.length));
conn.setDoOutput(true);
conn.getOutputStream().write(postParamsByte);
InputStream responseInputStream = conn.getInputStream();
StringBuffer responseStringBuffer = new StringBuffer();
byte[] byteContainer = new …Run Code Online (Sandbox Code Playgroud)