1
0
Files
PayPal-PHP-Server-SDK/doc/models/one-time-charge.md
2025-03-20 15:58:25 +00:00

2.0 KiB

One Time Charge

The one-time charge info at the time of checkout.

Structure

OneTimeCharge

Fields

Name Type Tags Description Getter Setter
setupFee ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getSetupFee(): ?Money setSetupFee(?Money setupFee): void
shippingAmount ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getShippingAmount(): ?Money setShippingAmount(?Money shippingAmount): void
taxes ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getTaxes(): ?Money setTaxes(?Money taxes): void
productPrice ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getProductPrice(): ?Money setProductPrice(?Money productPrice): void
subtotal ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getSubtotal(): ?Money setSubtotal(?Money subtotal): void
totalAmount Money Required The currency and amount for a financial transaction, such as a balance or payment due. getTotalAmount(): Money setTotalAmount(Money totalAmount): void

Example (as JSON)

{
  "setup_fee": {
    "currency_code": "currency_code8",
    "value": "value4"
  },
  "shipping_amount": {
    "currency_code": "currency_code0",
    "value": "value6"
  },
  "taxes": {
    "currency_code": "currency_code6",
    "value": "value2"
  },
  "product_price": {
    "currency_code": "currency_code6",
    "value": "value2"
  },
  "subtotal": {
    "currency_code": "currency_code2",
    "value": "value8"
  },
  "total_amount": {
    "currency_code": "currency_code2",
    "value": "value8"
  }
}