Comments (3)
This is what the payload sent to /payments
looks like (in our ruby code)
{
merchantAccount: merchant_account,
reference: reference,
shopperReference: shopper_reference,
shopperEmail: shopper_email,
shopperStatement: shopper_statement,
paymentMethod: payment_method,
enableRecurring: true,
recurringProcessingModel: RECURRING_PROCESSING_MODEL,
storePaymentMethod: true,
returnUrl: return_url,
amount: {
currency: currency,
value: 0 # if I replace this with `100`, everything works as expected. But then we don't have dynamic zero auth.
}
}
And this is how I create the Paypal component on the frontend:
const paypalComponent = checkout
.create("paypal", {
environment,
amount: {
currency,
value: 0,
},
intent: "authorize",
merchantId,
onSubmit: (state, component) => {
const data = {
returnUrl,
...state.data,
};
initiatePayment(data, component)
.then((res) => handleServerResponse(res, component))
.catch((error) => {
throw Error(error);
});
},
onCancel: (data, component) => {
component.setStatus("ready");
},
onError: (error, component) => {
component.setStatus("ready");
},
onAdditionalDetails: (state, component) => {
submitPaymentDetails(state.data, component)
.then((result) => {
finalRedirect(result);
})
.catch((error) => {
throw Error(error);
});
},
})
.mount("#paypal-container");
from adyen-web.
Hi @nsarno,
Thanks for the extensive report!
We're currently investigating this and get back to you once we have a clear answer. Cheers!
from adyen-web.
Hi @nsarno ,
Seems like this issue is stale. I hope you managed to go around this problem. Might be worth to mention that we introduced PayPal ZeroAuth (#1311) on v5.3.0 .
I am going to close this ticket for now, but feel free to reach out if you still have issues with the library. I can reopen this issue or you can create a new one. Thanks!
from adyen-web.
Related Issues (20)
- autofill from holdername do not autofill credit card number expired date and CVC HOT 1
- Empty fields in the iframe in case of errors HOT 1
- Credit card installments label doesn't render HOT 2
- v6 > paymentMethodComponents > Component for "iDeal" missing HOT 5
- Placeholder in inputs of credit card component are missing in v6.0 HOT 2
- Documentation Embed script and stylesheet is empty HOT 2
- Live endpoints to 6.0.0 not exists HOT 1
- on 6.0.1 there is a bug with stencil build Property 'formatProps' in type 'UPI' is not assignable to the same property HOT 1
- Github stale bot test HOT 2
- Missing en-GB translation causes 404 error in console HOT 1
- You must specify a countryCode when initializing checkout
- Translations not found for SDK 6.0.3 HOT 8
- Cards - Submit errors (Web component) HOT 2
- Google pay express onPaymentDataChanged not stopping the user from trying to pay while running HOT 3
- Production build not working with @adyen/adyen-web/auto HOT 7
- Cannot read properties of undefined (reading 'origin') HOT 5
- PayPal Credit overrules PayPal Pay Later HOT 3
- 'stateOrProvince' field is not prefilled after a failed transaction
- Adyen Web Types are missing the TransactionInfo object HOT 1
- ariaLiveSRPane is not being removed from the DOM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adyen-web.