Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网页支付的异步回调地址在哪里配? #3

Closed
sunshineroper opened this issue Jul 22, 2017 · 7 comments
Closed

网页支付的异步回调地址在哪里配? #3

sunshineroper opened this issue Jul 22, 2017 · 7 comments

Comments

@sunshineroper
Copy link

网页支付的异步回调地址在哪里配?

@Luncher
Copy link
Owner

Luncher commented Jul 22, 2017

const service = new Alipay(options)
const data = {
  subject: '辣条',
  out_trade_no: '1232423',
  total_amount: '100'
}
const basicParams = {
  return_url: 'http://xxx.com'
}
return service.createWebOrderURL(data, basicParams)
.then(result => {
  assert(result.code == 0, result.message)
  assert(result.message == 'success', result.message)
})

这里的return_url就是异步回掉地址:)

@sunshineroper
Copy link
Author

const service = new Alipay(options)
TypeError: Alipay is not a constructor

@Luncher
Copy link
Owner

Luncher commented Jul 22, 2017

问题修复了,感谢你的反馈

@Luncher Luncher closed this as completed Jul 23, 2017
@zengleyi
Copy link

zengleyi commented Dec 2, 2017

const basicParams = {
return_url: 'http://xxx.com',
notify_url:'http://xxx.com'
}

@Luncher
Copy link
Owner

Luncher commented Dec 3, 2017

@zengleyi 有啥疑问吗?

@cloudfreexiao
Copy link

请问下 app 支付 回调地址设置
由于是 事先在 开放平台中设置好的
在 创建 new Alipay 时 也要 传过去吗?

@Luncher
Copy link
Owner

Luncher commented Jun 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants