Encoding problems in PayPal Here callback URL?

时间:2015-06-15 14:42:30

标签: paypal filemaker

I'm trying to get PayPal Here to issue a callback to a FileMaker Go database. It looks like the fmp:// protocol is being used correctly, but seems that there may be some kind of other problem with the callback URL.

Here's the URL that I'm using to call PayPal Here (note that I'm not stripping out the carriage returns from the base64-encoded invoice in my application; this is the actual URL my application sends to the OS, and the invoice appears to be fine in PPH):

paypalhere://takePayment?as=b64&accepted=card%2Cpaypal&returnUrl=fmp:%2F%2F$%2Ffmg_pphTest&step=choosePayment&invoice=eyJwYXltZW50VGVybXMiOiJEdWVPblJlY2VpcHQiLCJkaXNjb3VudFBlcmNlbnQiOjAsImN1cnJl 
bmN5Q29kZSI6IlVTRCIsInBheWVyRW1haWwiOiJjcmlzdG9zK3Rlc3RAY3Jpc3Rvc2xjLmNvbSIs 
Iml0ZW1MaXN0Ijp7DQogICAgIml0ZW0iOiBbDQogICAgICAgIHsibmFtZSI6IkRpbGl0aGl1bSBD 
cnlzdGFsIiwiZGVzY3JpcHRpb24iOiJNYWtlcyBzaGlwIGdvIGZhc3QuIiwidW5pdFByaWNlIjow 
LjEsInF1YW50aXR5IjoxMCwidGF4UmF0ZSI6MCwidGF4TmFtZSI6IlRheCJ9DQogICAgXQ0KfX0=

This is the URL that I want to fire (this is just for testing; later on, there will be additional parameters added on to send the payment status, etc., but I can't even get this basic version to work yet):

fmp://$/fmg_pphTest

However, the behavior I'm seeing looks like this is the URL PPH is actually sending:

fmp://

Testing is being done on an iPad 2 running iOS 8.3. Any thoughts/suggestions out there?

1 个答案:

答案 0 :(得分:0)

FileMaker社区委员会的善良灵魂指出了一个有效的例子https://github.com/Genecom/FileMakerSampleSolutions。在进行一些比较后,我发现问题是由于使用了JSON发票对象的base64编码。当我将其更改为使用JSON发票的URL编码(如Genecom示例)时,我能够使回调URL成功运行。

我在PayPal Here github项目中打开了一个问题,如果您还遇到过这个问题(或者发现了相反的证据),请随时与我联系:https://github.com/paypal/here-sideloader-api-samples/issues/26