i am working on a project on online railway reservation in asp.net using this,i want to use credit card for the payment of reservation of tickets .tell me how can i do this

Dani AI

Generated

A concise, practical checklist and troubleshooting notes for accepting credit-card payments from an ASP.NET (VB.NET) site — complementary to ’s sample and addressing the later question from .

The core truth: you do not “process” cards with only ASP.NET code — you integrate with a payment gateway (merchant account or third‑party provider). For production systems use a gateway SDK or REST API, HTTPS/TLS (gateway endpoints now require TLS 1.2+), tokenization or a hosted checkout, and follow PCI rules so your site never stores full PANs or CVV data.

  • Select integration style: hosted checkout (reduces PCI scope) or direct API (gives control, increases PCI scope). Use the gateway’s .NET SDK when available.
  • Implementation flow: collect payment details -> client-side format checks (but not trusted) -> send to server -> call gateway over HTTPS -> receive token/transaction ID -> store only token, last‑4 digits and transaction ID -> update order status.
  • Security: enable TLS 1.2+, never store CVV/CVC, log only non-sensitive metadata, and use gateway webhooks to reconcile asynchronous events.
  • Test: use the gateway’s sandbox/test keys and sample cards before live.

Troubleshooting notes relevant to this thread

  • If an attached sample omits a Default.aspx.cs for VS2005, common causes are a language mismatch (C# sample vs VB project) or the file not being added to the project. Open Default.aspx, check the Page directive (CodeFile/CodeBehind and Inherits), then add a matching code‑behind file and set Build Action = Compile. Converting C# to VB (or vice versa) is often necessary.
  • Older .NET/Windows stacks may fail connecting to modern gateways due to TLS mismatch; upgrade the runtime or OS TLS support, or use the vendor SDK which handles transport.

Authoritative references: PCI requirements and integration guidance are available from the PCI Security Standards Council (PCI SSC) and common gateway implementation patterns are documented by providers such as Stripe ().

Recommended Answers

All 3 Replies

Hii Ritika...nice to see you

well there is lot of way to validate CC(Credit Card)

Here i m giving full solution example for the same..

It is in both solution(.Net 2003 .Net 2005)

Please see the attachment.

Hope so for ur HELP..

Ok biii

i am working on a project on online railway reservation in asp.net using this,i want to use credit card for the payment of reservation of tickets .tell me how can i do this

Hii Hii Ritika...nice to see you

well there is lot of way to validate CC(Credit Card)

Here i m giving full solution example for the same..

It is in both solution(.Net 2003 .Net 2005)

Please see the attachment.

Hope so for ur HELP..

Ok biii

hi puskhar
i have downloaded your cc processing code
but i am missing .cs file for default page in
vs2005 .
can u help me
by posting it again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.