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

added support for future payments #8

Open
wants to merge 41 commits into
base: master
Choose a base branch
from

Conversation

nezaidu
Copy link

@nezaidu nezaidu commented Apr 21, 2016

Hi everyone. So i added support for future payments and receiving metadata id.
Future payment example -

PayPal.futurePayment({
  clientId: "AbyfNDFV53djg6w4yYgiug_JaDfBSUiYI7o6NM9HE1CQ_qk9XxbUX0nwcPXXQHaNAWYtDfphQtWB3q4R",
  environment: PayPal.SANDBOX,
  merchantName: "Merchant Name",
  policyUri: "https://www.example.com/privacy",
  agreementUri: "https://www.example.com/legal",
})
.then((token) => {
  alert(token);
})
.catch((error) => {
  alert(error);
})

Getting metadata id -

PayPal.getMetadataId()
.then((token) => {
  alert(token);
})
.catch((error) => {
  alert(error);
})

If you could just point to me what's wrong with code, since i am new to contributing to open source packages, that would be great. I guess we should also fix documentation.

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.

2 participants