Comments (4)
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
{transitional: ..., adapter: function, transformRequest: ..., transformResponse: ..., timeout: ..., xsrfCookieName: ..., xsrfHeaderName: ..., maxContentLength: ..., maxBodyLength: ..., validateStatus: ..., headers: ..., baseURL: ..., raxConfig: ..., method: ..., withCredentials: ..., url: ..., json: ..., data: ...}
^^^^^^^^
at stringify ()
from medusa.
I suggest you start by reading our documentation about API Routes and browse how these are built in the Stripe plugin. Then, feel free to come back with questions.
from medusa.
I suggest you start by reading our documentation about API Routes and browse how these are built in the Stripe plugin. Then, feel free to come back with questions.
I created alipay payment plugin but don't know how to receive webhooks in front end, can you teach me? Thank you 🙏
from medusa.
The current difficulty is the call to the handlePayment function after the front-end button is clicked, which needs to jump to the payment link, receive the webhooks response, determine the payment completion status, complete the cart, jump to the order, and determine if the order is complete or not (that's all I know).
Also, if you add the completed cart to the backend webhooks, will the order be lost?
from medusa.
Related Issues (20)
- I customized a payment processor and linked it to the node_model as a yarn link, but I can't find my customized payment method under the Manage Payment Providers page. May I ask which step is wrong and can you give me help? HOT 1
- Deployed medusajs admin panel/api on my AWS EC2 instance and receiving CORS error whenever trying to login HOT 2
- PaymentService not available for import in the event subscriber HOT 1
- UI bug: Variant options popover appears behind content
- Customer_id not set in the context of a pricing strategy when doing medusa.products.list, called with a cart that has a customer assigned. HOT 3
- Error Updating Product Categories: Missing Replica Identity in `product_category_product` Table HOT 1
- Hardcoded schema name breaks migrations with restricted permissions HOT 1
- New payment plugin error on nextjs front end button
- Cannot display: Admin panel on port 7001 or 7000, when using 'pnpm run start'. HOT 1
- Foreign key deadlock with customer.billing_address_id HOT 7
- I tried to deploy the Admin Dashboard locally for the production environment, and it failed. HOT 1
- Trying to use bun for development HOT 1
- Out of stock with Allow backorders enabled HOT 1
- Docs(Code Issue): Code Issue in /plugins/notifications/sendgrid HOT 1
- MEDUSA_BACKEND_URL from .env file gets overwritten so admin always uses localhost:9000 HOT 3
- docs (code-issue) : Example Logged In User Middleware (TS Error) HOT 1
- Import Products Stuck in Processing HOT 2
- data parameter not passed in patchOrder (medusa-paypal-payment)
- adding product with sales channel fails 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 medusa.