التوثيق

Charge

A Charge represents one attempt to move money from a customer's payment method. PaymentIntent retries create separate charges; refunds reference the charge they reverse.

A Charge represents one attempt to move money from a customer's payment method. PaymentIntent retries create separate charges; refunds reference the charge they reverse.

{  "id": "string",  "object": "charge",  "amount": 0,  "amountCaptured": 0,  "amountRefunded": 0,  "currency": "EGP",  "createdAt": "2019-08-24T14:15:22Z",  "status": "SUCCEEDED",  "paid": true,  "refunded": true,  "captured": true,  "capturedAt": "2019-08-24T14:15:22Z",  "failureCode": "string",  "failureMessage": "string",  "receiptUrl": "string",  "receiptEmail": "string",  "billingDetails": {    "address": {      "city": "string",      "country": "string",      "line1": "string",      "line2": "string",      "postalCode": "string",      "state": "string"    },    "email": "string",    "name": "string",    "phone": "string"  },  "paymentMethodDetails": {    "type": "string",    "card": {      "brand": "string",      "country": "string",      "expMonth": 0,      "expYear": 0,      "funding": "string",      "last4": "string",      "network": "string",      "fingerprint": "string",      "threeDSecure": {},      "wallet": {}    },    "valu": {      "loanNumber": "string",      "tenure": 0,      "emi": "string",      "downPayment": "string",      "financedAmount": "string",      "firstEmiDueDate": "string",      "lastInstallmentDate": "string"    },    "fawry": {      "fawryRefNumber": "string",      "paymentReferenceNumber": "string",      "paymentMethod": "string",      "paymentTime": 0,      "expiresAt": "2019-08-24T14:15:22Z"    }  },  "outcome": {    "networkStatus": "string",    "reason": "string",    "riskLevel": "string",    "riskScore": 0,    "sellerMessage": "string",    "type": "string"  },  "balanceTransaction": {    "id": "string",    "object": "balance_transaction",    "amount": 0,    "availableOn": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "currency": "EGP",    "description": "string",    "fee": 0,    "net": 0,    "feeDetails": [      {}    ],    "status": "AVAILABLE",    "type": "CHARGE",    "reportingCategory": "string",    "exchangeRate": 0,    "source": "string",    "payoutBatch": {      "id": "string",      "object": "payout_batch",      "amount": 0,      "currency": "EGP",      "status": "open",      "arrivalDate": "2019-08-24",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "paymentIntentId": "string",    "merchantId": "string"  },  "presentmentDetails": {    "amount": 0,    "currency": "EGP",    "exchangeRate": 0,    "exchangeRateId": "string"  },  "refunds": [    {      "id": "string",      "object": "refund",      "amount": 0,      "chargeId": "string",      "paymentIntentId": "string",      "balanceTransactionId": "string",      "failureBalanceTransactionId": "string",      "externalRefundId": "string",      "createdAt": "2019-08-24T14:15:22Z",      "currency": "EGP",      "presentmentDetails": {},      "status": "PENDING",      "reason": "DUPLICATE",      "failureReason": "lost_or_stolen_card",      "failureCode": "string",      "failureMessage": "string",      "pendingReason": "processing",      "description": "string",      "destinationDetails": {},      "nextAction": {},      "instructionsEmail": "string",      "receiptNumber": "string",      "feeAmount": 0    }  ],  "paymentIntentId": "string",  "paymentMethodId": "string",  "calculatedStatementDescriptor": "string",  "disputed": true,  "externalChargeId": "string",  "config": {    "vatCollectionEnabled": true,    "vatCollectionRate": 0,    "collectedVatAmount": 0,    "platformFeePassThrough": true,    "merchantFeeDeduction": 0  },  "geocoding": {    "ipAddress": "string",    "location": {      "countryCode": "string",      "countryName": "string",      "regionCode": "string",      "regionName": "string",      "cityName": "string"    }  },  "session": {    "browser": "string",    "browserVersion": "string",    "platform": "string",    "device": "string",    "deviceVendor": "string",    "deviceModel": "string"  },  "merchantOrigin": "string",  "merchantDomain": "string",  "processorCapabilities": {    "supportsRefund": true,    "supportsPartialRefund": true  },  "activeHoldId": "string",  "settlementModel": "aggregated"}