portal, platform, and server fixes

This commit is contained in:
Timur Gordon
2025-06-30 17:01:40 +02:00
parent 1c96fa4087
commit a5b46bffb1
59 changed files with 9158 additions and 1057 deletions

View File

@@ -183,7 +183,7 @@
// Create payment intent on server
window.createPaymentIntent = async function(formDataJson) {
console.log('💳 Creating payment intent for company registration...');
console.log('🔧 Server endpoint: /company/create-payment-intent');
console.log('🔧 Server endpoint: /api/company/create-payment-intent');
try {
// Parse the JSON string from Rust
@@ -201,7 +201,7 @@
final_agreement: formData.final_agreement
});
const response = await fetch('http://127.0.0.1:3001/company/create-payment-intent', {
const response = await fetch('http://127.0.0.1:3001/api/company/create-payment-intent', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -424,7 +424,7 @@
};
console.log('✅ Stripe integration ready for company registration payments');
console.log('🔧 Server endpoint: /company/create-payment-intent');
console.log('🔧 Server endpoint: /api/company/create-payment-intent');
console.log('💡 Navigate to Entities → Register Company → Step 4 to process payments');
// Add a test function for manual payment testing