Skip to content

Commit 6eabe22

Browse files
committed
feat: add new App component with payment handling and UI for PlugPag Nitro
1 parent 34175fc commit 6eabe22

File tree

2 files changed

+443
-29
lines changed

2 files changed

+443
-29
lines changed

README.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -389,35 +389,6 @@ try {
389389
390390
---
391391
392-
## 🏗️ Migration from Old API
393-
394-
### Before (number-based)
395-
```typescript
396-
// Old approach with magic numbers
397-
const result = await doPayment({
398-
amount: 2500,
399-
type: 1, // What does 1 mean?
400-
installmentType: 3, // What does 3 mean?
401-
installments: 1
402-
});
403-
```
404-
405-
### After (enum-based)
406-
```typescript
407-
// New approach with type-safe enums
408-
const result = await doPayment({
409-
amount: 2500,
410-
type: PaymentType.CREDIT, // Clear and type-safe
411-
installmentType: InstallmentType.BUYER_INSTALLMENT, // Self-documenting
412-
installments: 1
413-
});
414-
415-
// Or use presets for common scenarios
416-
const result = await doPayment(PaymentPresets.creditCard(2500, 1));
417-
```
418-
419-
---
420-
421392
## 🤝 Contributing
422393
423394
```bash

0 commit comments

Comments
 (0)