Deployment: Target domain set to p2cgateway.store and environment variables synced
This commit is contained in:
@@ -23,7 +23,7 @@ export default function DocumentationPage() {
|
|||||||
setTimeout(() => setCopied(null), 2000);
|
setTimeout(() => setCopied(null), 2000);
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkoutUrlCode = `https://p2cgateway.com/checkout?merchant_id=YOUR_MERCHANT_ID&amount=100¤cy=TRY&ref_id=ORDER_123&callback_url=https://yoursite.com/success`;
|
const checkoutUrlCode = `https://p2cgateway.store/checkout?merchant_id=YOUR_MERCHANT_ID&amount=100¤cy=TRY&ref_id=ORDER_123&callback_url=https://yoursite.com/success`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="max-w-5xl mx-auto space-y-12 pb-20 animate-in fade-in slide-in-from-bottom-4 duration-700">
|
<div className="max-w-5xl mx-auto space-y-12 pb-20 animate-in fade-in slide-in-from-bottom-4 duration-700">
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export default function MerchantsPage() {
|
|||||||
const identifier = m.short_id || m.id;
|
const identifier = m.short_id || m.id;
|
||||||
const paymentLink = typeof window !== 'undefined'
|
const paymentLink = typeof window !== 'undefined'
|
||||||
? `${window.location.origin}/checkout?merchant_id=${identifier}&amount=0`
|
? `${window.location.origin}/checkout?merchant_id=${identifier}&amount=0`
|
||||||
: `https://p2cgateway.com/checkout?merchant_id=${identifier}&amount=0`;
|
: `https://p2cgateway.store/checkout?merchant_id=${identifier}&amount=0`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={m.id} className="bg-white rounded-[40px] border border-gray-100 p-8 shadow-sm hover:shadow-md transition-shadow group">
|
<div key={m.id} className="bg-white rounded-[40px] border border-gray-100 p-8 shadow-sm hover:shadow-md transition-shadow group">
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export default function LoginPage() {
|
|||||||
required
|
required
|
||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
placeholder="admin@p2cgateway.com"
|
placeholder="admin@p2cgateway.store"
|
||||||
className="w-full pl-14 pr-6 py-4 bg-gray-50 border-none rounded-2xl text-sm font-black text-gray-900 focus:ring-2 focus:ring-blue-500 outline-none placeholder:text-gray-300"
|
className="w-full pl-14 pr-6 py-4 bg-gray-50 border-none rounded-2xl text-sm font-black text-gray-900 focus:ring-2 focus:ring-blue-500 outline-none placeholder:text-gray-300"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default async function MerchantIntegrationPage(props: {
|
|||||||
redirect(`/merchant/${identifier}/login`);
|
redirect(`/merchant/${identifier}/login`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const host = process.env.NEXT_PUBLIC_BASE_URL || 'https://p2cgateway.com';
|
const host = process.env.NEXT_PUBLIC_BASE_URL || 'https://p2cgateway.store';
|
||||||
const checkoutUrl = `${host}/checkout?merchant_id=${merchant.short_id || merchant.id}&amount=100¤cy=TRY&ref_id=SİPARİŞ_123`;
|
const checkoutUrl = `${host}/checkout?merchant_id=${merchant.short_id || merchant.id}&amount=100¤cy=TRY&ref_id=SİPARİŞ_123`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ export default function Home() {
|
|||||||
</div>
|
</div>
|
||||||
<pre className="text-blue-300">
|
<pre className="text-blue-300">
|
||||||
{`// Ödeme Linki Oluşturun
|
{`// Ödeme Linki Oluşturun
|
||||||
const checkoutUrl = "https://p2cgateway.com/checkout";
|
const checkoutUrl = "https://p2cgateway.store/checkout";
|
||||||
const params = {
|
const params = {
|
||||||
merchant_id: "m_92183",
|
merchant_id: "m_92183",
|
||||||
amount: 250.00,
|
amount: 250.00,
|
||||||
|
|||||||
Reference in New Issue
Block a user