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

Payment APIs Refinements #20

Merged
merged 11 commits into from
Mar 21, 2018
Merged

Payment APIs Refinements #20

merged 11 commits into from
Mar 21, 2018

Conversation

JasonBoy
Copy link
Owner

@JasonBoy JasonBoy commented Mar 21, 2018

  • ✨ Add HMAC-SHA256 sign type for some apis do not support MD5
  • ✨ A simple demo implementation for Order class in a general online shop system
  • ✨ Add API decryptRefundNotifyResult to decrypt wechat refund notify result data
  • ✨ Add API queryComments to query user comment for their payment order
  • ✨ Add API downloadFundFlow to download merchant fund flows
  • 🔧 Download API will resolved/rejected with:
{
  //an error object, rejected
  error: new Error(),
  //error msg, , rejected
  msg: '',
  //resolved with download stream,
  //can be piped to other writable stream, e.g: result.data.pipe(fs.createWritableStream('./bill.txt'))
  data: Stream,
  //sign info from response header
  digest: 'SHA=ec45d7c24492dcd62d92472b0f2816c8d9a2d773',
}
  • 🐛 Other Fixes and Improvements
  • 🙃 Demo page updates:

updated demo page

@JasonBoy JasonBoy merged commit 8b2064d into master Mar 21, 2018
@JasonBoy JasonBoy deleted the paymenttest branch March 21, 2018 09:18
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

Successfully merging this pull request may close these issues.

1 participant