paypal / paypal-sdk-client Goto Github PK
View Code? Open in Web Editor NEWShared config for PayPal/Braintree client SDKs
License: Apache License 2.0
Shared config for PayPal/Braintree client SDKs
License: Apache License 2.0
Greetings!
We're using the following for embedding the sign up link: https://developer.paypal.com/docs/platforms/seller-onboarding/build-onboarding/#step-2-embed-the-paypal-sign-up-link
As we're testing, we're finding that some folks are starting the process and closing (maybe they meant to change countries), or they're actually finishing the onboarding process but then closing the window instead of clicking "Go back to John's Store website".
When the user first clicks on the link, the SDK puts a dark overlay on the screen while the onboarding process goes on. If the user closes the window, the overly is simply removed. We can't seem to find a way to know if the user simply canceled the process โ or if they did finish but didn't click the 'Go Back' button. There's checking the response.ok
, but this seems to only cover errors, which these two scenarios don't appear to qualify as.
Any direction you're able to give for this? Thank you!
Hi Team, hopefully this is right place to ask, if not, I'd appreciate if you can direct me.
I'm the founder of cloudquery.io, a high performance open source ELT framework.
Our users are interested in a PayPal plugin, but as we cannot maintain all the plugins ourselves, I was curious if this would be an interesting collaboration, where we would help implement an initial source plugin, and you will help maintain it.
This will give your users the ability to sync PayPal data to any of their datalakes/data-warehouses/databases easily using any of the growing list of CQ destination plugins.
Best,
Yevgeny
we just noticed that, when use paypal authentication. it will return authorization code. But to some specifc user, when we use this authorization code to exchange token, it always report 400, and the payload would like:
{"error_description":"Invalid authorization code","error":"access_denied","correlation_id":"2ac9f7fa4e099","information_link":"https://developer.paypal.com/docs/api/#errors"}
There is a card to take care of a couple of tasks in this repo and I feel like we need input from other folks that will be touching this code before I sign off on this card.
Reviewers (Feel free to add folks to this for review):
These are the tasks that this repo needs to setup for infrastructure:
I'm going to summarize it currently in point form. Please comment on this issue with questions, or just ๐ if you're happy!
src/
src/component/Client/index.js
src/component/Client/shared-config.js
src/component/HostedFields/index.js
src/lib/polyfill-assign.js
test/unit/Client/index.js
test/integration/Client/index.js
flow
flavored codedist/
Originally posted by @jdaykin454 in mochajs/mocha#4668 (comment)
In the flow type definitions, this seems to be a syntax error:
at least the flow
command says so:
49: toPromise(): Class<Promise<R>> | Class<Promise> | Promise<+R>;
^ Unexpected token +
and flow.org/try:
Hi, sorry for the random question.
I realized that the webhook is not working since some hours ago.
Not sure where to ask about this though.
I checked the API status page and it says Sandbox system is working correctly.
Please let me know if this is something I can expect to be back to normal soon.
Greetings!
We're tightening up our integration by making sure we've got error handling locked down. I'm having trouble getting the onError
callback on the paypal.Buttons(config)
to work properly. Here's the thing, though, it's working just fine in this codepen I threw together: https://codepen.io/JasonTheAdams/pen/gOrKyoG
Clearly we're doing something different. Here's what we've got in the application:
paypal.Buttons( {
onInit: onInitHandler,
onClick: onClickHandler,
createOrder: createOrderHandler,
onApprove: onApproveHandler,
onError: function( error ) {
console.log( 'In this function' );
console.log( error );
},
style: {
layout: 'vertical',
size: 'responsive',
shape: 'rect',
label: 'paypal',
color: 'gold',
tagline: false,
},
} ).render( this.smartButtonContainer );
As you can see, I've just got a closure for onError
, however "In this function" never shows up in the console. Here's our createOrderHandler
method which throws the error:
async createOrderHandler( data, actions ) {
Give.form.fn.removeErrors( this.jQueryForm );
const response = await fetch( `${ Give.fn.getGlobalVar( 'ajaxurl' ) }?action=give_paypal_commerce_create_order`, {
method: 'POST',
body: DonationForm.getFormDataWithoutGiveActionField( this.form ),
} );
const responseJson = await response.json();
if ( ! responseJson.success ) {
if ( null === responseJson.data.error ) {
throw {};
}
throw responseJson.data.error;
}
return responseJson.data.id;
}
It is throwing the error, and I see the following show up in the console:
Any ideas as to why the onError
callback may not be getting fired?
No description provided.
Originally posted by @jdaykin454 in https://github.com/mochajs/mocha/issues/4684#issuecomment-873504793
mochajs/mocha#4684 (comment)
Originally posted by @jdaykin454 in #82 (comment)
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
.github/workflows/main.yml
actions/checkout v3
actions/setup-node v3
bahmutov/npm-install v1
codecov/codecov-action v3
codecov/codecov-action v3
.github/workflows/publish.yml
actions/checkout v3
actions/setup-node v3
bahmutov/npm-install v1
package.json
@krakenjs/beaver-logger ^5.0.0
@krakenjs/belter ^2.0.0
@krakenjs/cross-domain-utils ^3.0.2
@krakenjs/jsx-pragmatic ^3.0.0
@krakenjs/zalgo-promise ^2.0.0
@paypal/sdk-constants ^1.0.94
bowser ^2.0.0
@krakenjs/grumbler-scripts ^8.0.4
@krakenjs/sync-browser-mocks ^3.0.0
babel-core 7.0.0-bridge.0
cheerio 1.0.0-rc.9
cross-env ^7.0.3
esdoc 1.1.0
esdoc-flow-type-plugin 1.1.0
esdoc-standard-plugin 1.0.0
flow-bin 0.155.0
flow-typed ^3.8.0
husky ^8.0.1
jest ^29.3.1
lint-staged ^13.0.3
mocha ^10.0.0
prettier 2.8.8
.nvmrc
node 18
No description provided.
Originally posted by @jdaykin454 in https://github.com/mochajs/mocha/issues/4684#issuecomment-873504793
ๅ ฑๆ
I wanted to expand on #44 (comment) โย I believe that issue is resolved, but we have another need I want to clearly spell out.
Our product, GiveWP, provides our customers with the ability to create a donation form on their website. The form can be displayed either as the page is loaded, or in a modal once a button is clicked, or some other way. This creates the common scenario where a page will have more than one donation form displayed at a time.
Right now, the SDK seems to be built around as a global, wherein the SDK applies to the whole document. This is especially evident as the intent=order
or intent=subscription
is defined as a parameter of the script. In #44 we were given the ability to change between orders and subscriptions by reloading the script, but this isn't a perfect solution in the context of multiple forms potentially being in separate states (i.e. one in single donations, the other in recurring).
As @ravinderk found, we're able to process Orders and Subscriptions by setting vault=true
and intent=order
, however we get a warning when the Subscription is processed. Is this something stable we can continue to do? Or will it likely break at some point?
In our perfect world, we wouldn't need to globally set whether we intend to process orders or subscriptions, but handle it on a per Smart Buttons and per Hosted Fields basis. Does this make sense?
Greetings!
I work with givewp.com and we've been working with an integration manager at PayPal since June to provide integration for PayPal Commerce.
We've recently run into a problem with this SDK wherein the vault=true
parameter must be set at the time that the SDK script is loaded. This means that the SDK is locked into either creating Orders or Subscriptions once it's loaded.
This is a problem for us as our product provides organizations with a donation form to put on their website. During realtime, the donor may decide whether they're making a one-time or recurring donation. In fact, the donor could even start willing out CC details, then decide they want to make it recurring, tick a box, and continue. You can see a couple demos:
Is there currently a way of switching between Orders and Subscriptions at runtime? If not, we need that for compatibility of integration.
Thank you!
As per requirement, we re-render smart buttons and hosted card fields when currency changes because PayPal SDK only processes currency which we pass in query param. The smart button can be destroyed by calling the close
function but I did not find a similar function for hosted card fields.
GitHub Discussion: #44 (comment)
Can you suggest the best way to re-render the hosted card field without reloading the whole page?
How about payments-web-client
?
I think we still need the package.json, it contains the new version number.
Originally posted by @juergba in mochajs/mocha#4058 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.