问题标签 [payfast]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
payfast - 错误:400 错误请求很遗憾,我们无法处理您的交易。出现问题:未收到付款数据
我在我的网站上使用 payfast 作为我的支付网关,如果在他们的测试引擎上测试 payfast,当我将值发布到他们的引擎时它工作正常,但是当我使用他们的引擎不是用于测试时,它会给我一个错误,说“没有付款收到数据”我收到一条错误消息
wordpress - Woocommerce 续订订单停留在待付款状态
我的 Woocommerce 商店有关于订阅的问题。
一切正常,除了续订订单卡在“待付款”上,即使在付款成功完成后也是如此。付款完成后,这需要更改为“处理中”或“已完成”。
我使用 Payfast 作为支付网关。
我试过了:
返回 URL 中的 http 和 https。联系了 Payfast(他们说他们的系统很好)。增加 PHP 限制。更新了插件。
php - 标头 200 未在 PayFast 中触发
我使用了下面的代码(php),即使这样,payFast也没有从notify_url收到标题200请建议我解决方案,分享代码
公共功能通知(){
}
payFast 没有收到来自 notify_url 的标头 200。对此为什么 PastFast 没有收到标头 200 的任何解决方案,即使我添加了标头('HTTP/1.0 200 OK');冲洗();
reactjs - PayFast 集成到 React 签名错误
您好,我正在尝试将 PayFast 集成到我的 ReactJS 项目中,但出现此错误
signature : 生成的签名与提交的签名不匹配
我不明白,因为基于文档https://developers.payfast.co.za/docs#step_2_signature我们将生成一个 Md5 哈希然后将其与整个表单一起提交
我可以在解决这个问题上获得一些帮助吗?
PayFast 自定义表单集成的代码
typescript - 我在 Payfast 角度打字稿实现中收到无效的 returnUrl
这是我正在使用的网址this.payfast.returnURL('https://example.co.za/checkout/success');
,知道我应该如何编写网址吗?在此处输入图像描述
flutter - Payfast Api 集成到 Flutter App Http 请求错误
我正在使用 Payfast 支付网关构建应用程序。网关文档仅涵盖 php 方面,但我想通过请求 https 来实现。试图解决这种情况,但不明白我错在哪里。
尝试在此站点payfast_developers_docs上进行简单的表单集成
我收到 404 和 500 错误。无法到达结帐表格。现在谢谢。
在我的源代码下面;
node.js - 使用 node.js 的 vue 应用中的 PayFast notify_url 通知参数和安全检查失败
我在 Vue 应用程序中测试 PayFast 自定义集成部分成功。我正在使用沙盒并成功付款并被重定向到 return_url。
我的问题在于 notify_url。我已经设置了一个与 lambda 函数集成的 api 网关 url,以处理从 PayFast 接收到的数据。每次成功付款时,notify_url 都会工作并触发 lambda 函数。我检查了函数的 cloudwatch 记录,发现 PayFast 已在负载中发送通知参数,该负载作为 lambda 函数中的 event.body 接收。这是它的样子:
"body": "m_payment_id=&pf_payment_id=1306894&payment_status=COMPLETE&item_name=3153-317600-008&item_description=&amount_gross=10.00&amount_fee=-0.23&amount_net=9.77&custom_str1=ae7ed0ca-1bef-49bb-91bc-0e17054224b5&custom_str2=&custom_str3=&custom_str4=&custom_str5=&custom_int1=&custom_int2 =&custom_int3=&custom_int4=&custom_int5=&name_first=&name_last=&email_address=&merchant_id=10000100&signature=905f44e2c22d3dc615c36fac3b4d881d"
下一步是安全检查。我运行以下代码:
这就是pfParamString在控制台中打印时的样子:
"0=m&1= &2=p&3=a&4=y&5=m&6=e&7=n&8=t&9= &10=i&11=d&12=%3D&13=%26&14=p&15=f&16= &17=p&18=a&19=y&20=m&21=e&22=n&23 =t&24= &25=i&26=d&27=%3D&28=1&29=3&30=0&31=6&32=8&33=9&34=4&35=%26&36=p&37=a&38=y&39=m&40=e&41=n&42=t&43= &44=s&45=t&46=a&47 =t&48=u&49=s&50=%3D&51=C&52=O&53=M&54=P&55=L&56=E&57=T&58=E&59=%26&60=i&61=t&62=e&63=m&64= &65=n&66=a&67=m&68=e&69=%3D&70= 3&71=1&72=5&73=3&74=-&75=3&76=1&77=7&78=6&79=0&80=0&81=-&82=0&83=0&84=8&85=%26&86=i&87=t&88=e&89=m&90= &91=d&92=e&93=s&94=c&95=r&96=i&97=p&98=t&99=i&100=o&101=n&102=%3D&103=%26&104=a&105=m&106=o&197=u&108=& t&110= &111=g&112=r&113=o&114=s&115=s&116=%3D&117=1&118=0&119=.&120=0&121=0&122=%26&123=a&124=m&125=o&126=u&127=n&128=t&129=126=u&127=n&128=t&129=126=u&127=n&128=t&129=&130=f&131=e&132=e&133=%3D&134=-&135=0&136=.&137=2&138=3&139=%26&140=a&141=m&142=o&143=u&144=n&145=t&146= &147=n&148=e&149=t9&15=2%3&149=t9&15&15 =.&153=7&154=7&155=%26&156=c&157=u&158=s&159=t&160=o&161=m&162= &163=s&164=t&165=r&166=1&167=%3D&168=a&169=e&170=7&171=e&174=c&171=e&172=d&1 a&176=-&177=1&178=b&179=e&180=f&181=-&182=4&183=9&184=b&185=b&186=-&187=9&188=1&189=b&190=c&191=-&192=0&193=e&194=1&1975=&7&1986=& 4&199=2&200=2&201=4&202=b&203=5&204=%26&205=c&206=u&207=s&208=t&209=o&210=m&211= &212=s&213=t&214=r&215=2&216=%3D&217=%26&218=c&219=u&220=s&221=t&222=o&223=m&224= &225=s&226=t&227=r&228=3&229=%331=c&230=%2&26&26 s&234=t&235=o&236=m&237= &238=s&239=t&240=r&241=4&242=%3D&243=%26&244=c&245=u&246=s&247=t&248=o&249=m&250=249=米&250=249=米&250=&251=s&252=t&253=r&254=5&255=%3D&256=%26&257=c&258=u&259=s&260=t&261=o&262=m&263= &264=i&265=n&266=t&267=1&268=%3D&22271=26&272=c=c& t&274=o&275=m&276= &277=i&278=n&279=t&280=2&281=%3D&282=%26&283=c&284=u&285=s&286=t&287=o&288=m&289= &290=i&291=n&292=2%6&293=5%&2%6D&293=5%2&9 c&297=u&298=s&299=t&300=o&301=m&302= &303=i&304=n&305=t&306=4&307=%3D&308=%26&309=c&310=u&311=s&312=t&313=o&314=m&315= &3216=t&315=&3216=t&39=n&3216=t&3917 %3D&321=%26&322=n&323=a&324=m&325=e&326= &327=f&328=i&329=r&330=s&331=t&332=%3D&333=%26&334=n&335=a&336=m&337=e&338= &339=l&340=a&341=s&342=t&343=%3D&344=%26&3445=e&348=i&348=m l&350= &351=a&352=d&353=d&354=r&355=e&356=s&357=s&358=%3D&359=%26&360=m&361=e&362=r&363=c&364=h&365=a&366=n&367=t&368=365=a&366=n&367=t&368=365=a&366=n&367=t&368=&369=i&370=d&371=%3D&372=1&373=0&374=0&375=0&376=0&377=1&378=0&379=0&380=%26&381=s&382=i&383=g&384=n&385=a&386=t&387=u&388=%D&387=9&388=9&3=9&3=3&39&38 =0&393=5&394=f&395=4&396=4&397=e&398=2&399=c&400=2&401=2&402=d&403=3&404=d&405=c&406=6&407=1&408=5&409=c&410=3&411=6&412=f&413=a&414=c&415=3&416=b&417 =4&418=d&419=8&420=8&421=1&422=d" 2021-11-07T15:45:01.326Z 461cc85d-a4a0-48bb-9222-d98fd789df57 INFO 事件主体,pfData,pfParamString: "0=m&1= &2=p&3=a&4 =y&5=m&6=e&7=n&8=t&9= &10=i&11=d&12=%3D&13=%26&14=p&15=f&16= &17=p&18=a&19=y&20=m&21=e&22=n&23=t&24= &25=i&26=d&27=%3D&28=1&29=3&30=0&31=6&32=8&33=9&34=4&35=%26&36=p&37=a&38=y&39=m&40=e&41= n&42=t&43= &44=s&45=t&46=a&47=t&48=u&49=s&50=%3D&51=C&52=O&53=M&54=P&55=L&56=E&57=T&58=E&59=%26&60=i&61=t&62=e&63=m&64=61=t&62=e&63=m&64=61=t&62=e&63=m&64=&65=n&66=a&67=m&68=e&69=%3D&70=3&71=1&72=5&73=3&74=-&75=3&76=1&77=7&78=6&79=0&80=0&81=-&82=0&83=0&84=8&85=%26&86=i&87= t&88=e&89=m&90= &91=d&92=e&93=s&94=c&95=r&96=i&97=p&98=t&99=i&100=o&101=n&102=%3D&103=%26&104=a&105=m&106=o&107=u&108=n&109=t& 1 g&112=r&113=o&114=s&115=s&116=%3D&117=1&118=0&119=.&120=0&121=0&122=%26&123=a&124=m&125=o&126=u&127=n&128=t&129= &130=f&131=e&134=f&131=e&1&134=3&3&1 -&135=0&136=.&137=2&138=3&139=%26&140=a&141=m&142=o&143=u&144=n&145=t&146= &147=n&148=e&149=t&150=%3D&151=9&152=.&153=7&154=7&155=%26&156=c&157=u&158=s&159=t&160=o&161=m&162=&163=s&164=t&165=r&166=1&167=%3D&168=a&169=e&170=7&171=e&172=d&173=0&174=c&175=a&176=-&177=1&178=b&179=e&180=f&181=-&1862=4&188=b&1862=4&188=b =-&187=9&188=1&189=b&190=c&191=-&192=0&193=e&194=1&195=7&196=0&197=5&198=4&199=2&200=2&201=4&202=b&203=5&204=%26&205=c&206=t&200=c&206=t&200=7&208= o&210=m&211= &212=s&213=t&214=r&215=2&216=%3D&217=%26&218=c&219=u&220=s&221=t&222=o&223=m&224= &225=s&226=t&227=r&228=32%&2=2&228=32%&2%&2&2%&26&2% u&233=s&234=t&235=o&236=m&237= &238=s&239=t&240=r&241=4&242=%3D&243=%26&244=c&245=u&246=s&247=t&248=o&249=m&250= &251=s&252=t&253=r&254=5&255=%3D&256=%26&257=c&258=u&259=s&260=t&261=o&262= i&261=o&262= i& 261=o&262=m&26&26&26 =t&267=1&268=%3D&269=%26&270=c&271=u&272=s&273=t&274=o&275=m&276=&277=i&278=n&279=t&280=2&281=%3D&282=%26&283=c&284=u&285=s&286=t&287=o&288=m&289= &290=i&291=n&292=t&293=3&294=%3D&299=%26&298=c=c&298=c& t&300=o&301=m&302= &303=i&304=n&305=t&306=4&307=%3D&308=%26&309=c&310=u&311=s&312=t&313=o&314=m&315= &316=i&317=n&318=3%2&3192=5&2%2&319=5&2% n&323=a&324=m&325=e&326= &327=f&328=i&329=r&330=s&331=t&332=%3D&333=%26&334=n&335=a&336=m&337=e&338= &339=l&340=a&341=3%35=3&44=2%36&3&3 e&346=m&347=a&348=i&349=l&350= &351=a&352=d&353=d&354=r&355=e&356=s&357=s&358=%3D&359=%26&360=m&361=e&362=r&363=c&364=h&365=a&366=n&367=t&368=&369=i&370=d&371=%3D&372=1&373=0&374=0&375=0&376=0&377=1&378=0&379=0&380=%26&381=s&382=i&383=g&384=n&385=a&386=t&387=u&388=%D&387=9&388=9&3=9&3=3&39&38 =0&393=5&394=f&395=4&396=4&397=e&398=2&399=c&400=2&401=2&402=d&403=3&404=d&405=c&406=6&407=1&408=5&409=c&410=3&411=6&412=f&413=a&414=c&415=3&416=b&417 =4&418=d&419=8&420=8&421=1&422=d"
此后,所有检查都失败(有效的 PayFast 域检查除外)。
我究竟做错了什么?event.body 是否正确?据我了解,api网关将有效负载传递给lambda函数,但可能不会按照接收顺序传递键/值对。pfParamString是否正确?
顺便说一句,lambda函数使用node.js
这让我发疯,所以我将不胜感激任何帮助解决问题。谢谢
url - Payfast 现场集成更改重定向 URL
我正在为 PayFast 现场集成而苦苦挣扎。
PayFast 在成功付款后无法重定向。看起来好像我的网址正在更改。
从这里我为他们的在线集成运行标准 PayFast 代码,但 return_url 回来了:https:\/\/www.example.co.za\/signup\/success_temp.php
而cancel_url:https:\/\/www.example.co.za\/signup\/cancel.php
我已经测试了到 google.com 的重定向,我遇到了同样的问题。
有什么想法我哪里出错了吗?