Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "da70fa1e40946a965238d445a51e71c3b9bbef76",
"originGitCommit": "96f0b4db0efb3bb6d0ee5bd017873a43f4e09f16",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.8.1",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -36029,7 +36029,7 @@ client.payments.create(
<dl>
<dd>

**setup_future_usage:** `typing.Optional[CreatePaymentsRequestSetupFutureUsage]` — Attests that the buyer was told the payment method will be saved for later charges, and saves it once they approve, so it can be charged with `member_id` and `payment_method_id`. PayPal shows the buyer the agreement to future charges on its approval page. Omit it for a one-time payment that saves nothing. Ignored unless a `paypal` `payment_method` is provided.
**setup_future_usage:** `typing.Optional[CreatePaymentsRequestSetupFutureUsage]` — Attests that the buyer was told the payment method will be saved for later charges. A `paypal` method is saved once the buyer approves on PayPal's page, and can then be charged with `member_id` and `payment_method_id`. A `card_present` method saves the tapped card when the reader collects it. The payment's `payment_method_id` then names the saved card. The point of sale must also pass the buyer's consent to the Terminal SDK as `allow_redisplay`. Omit it for a one-time payment that saves nothing. Other payment methods ignore it.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/payments/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def create(
Where the buyer continues after completing an off-site step such as 3D Secure. An absolute https URL without credentials, at most 2,048 characters. Required when a saved payment method is charged with `off_session` false; otherwise ignored unless `confirmation_token` or a `paypal` `payment_method` is provided.

setup_future_usage : typing.Optional[CreatePaymentsRequestSetupFutureUsage]
Attests that the buyer was told the payment method will be saved for later charges, and saves it once they approve, so it can be charged with `member_id` and `payment_method_id`. PayPal shows the buyer the agreement to future charges on its approval page. Omit it for a one-time payment that saves nothing. Ignored unless a `paypal` `payment_method` is provided.
Attests that the buyer was told the payment method will be saved for later charges. A `paypal` method is saved once the buyer approves on PayPal's page, and can then be charged with `member_id` and `payment_method_id`. A `card_present` method saves the tapped card when the reader collects it. The payment's `payment_method_id` then names the saved card. The point of sale must also pass the buyer's consent to the Terminal SDK as `allow_redisplay`. Omit it for a one-time payment that saves nothing. Other payment methods ignore it.

shipping_address : typing.Optional[CreatePaymentsRequestShippingAddress]
Where physical goods ship, returned on the payment as `shipping_address`. Only the keys you supply are kept; omit it for digital goods.
Expand Down Expand Up @@ -1435,7 +1435,7 @@ async def create(
Where the buyer continues after completing an off-site step such as 3D Secure. An absolute https URL without credentials, at most 2,048 characters. Required when a saved payment method is charged with `off_session` false; otherwise ignored unless `confirmation_token` or a `paypal` `payment_method` is provided.

setup_future_usage : typing.Optional[CreatePaymentsRequestSetupFutureUsage]
Attests that the buyer was told the payment method will be saved for later charges, and saves it once they approve, so it can be charged with `member_id` and `payment_method_id`. PayPal shows the buyer the agreement to future charges on its approval page. Omit it for a one-time payment that saves nothing. Ignored unless a `paypal` `payment_method` is provided.
Attests that the buyer was told the payment method will be saved for later charges. A `paypal` method is saved once the buyer approves on PayPal's page, and can then be charged with `member_id` and `payment_method_id`. A `card_present` method saves the tapped card when the reader collects it. The payment's `payment_method_id` then names the saved card. The point of sale must also pass the buyer's consent to the Terminal SDK as `allow_redisplay`. Omit it for a one-time payment that saves nothing. Other payment methods ignore it.

shipping_address : typing.Optional[CreatePaymentsRequestShippingAddress]
Where physical goods ship, returned on the payment as `shipping_address`. Only the keys you supply are kept; omit it for digital goods.
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/payments/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def create(
Where the buyer continues after completing an off-site step such as 3D Secure. An absolute https URL without credentials, at most 2,048 characters. Required when a saved payment method is charged with `off_session` false; otherwise ignored unless `confirmation_token` or a `paypal` `payment_method` is provided.

setup_future_usage : typing.Optional[CreatePaymentsRequestSetupFutureUsage]
Attests that the buyer was told the payment method will be saved for later charges, and saves it once they approve, so it can be charged with `member_id` and `payment_method_id`. PayPal shows the buyer the agreement to future charges on its approval page. Omit it for a one-time payment that saves nothing. Ignored unless a `paypal` `payment_method` is provided.
Attests that the buyer was told the payment method will be saved for later charges. A `paypal` method is saved once the buyer approves on PayPal's page, and can then be charged with `member_id` and `payment_method_id`. A `card_present` method saves the tapped card when the reader collects it. The payment's `payment_method_id` then names the saved card. The point of sale must also pass the buyer's consent to the Terminal SDK as `allow_redisplay`. Omit it for a one-time payment that saves nothing. Other payment methods ignore it.

shipping_address : typing.Optional[CreatePaymentsRequestShippingAddress]
Where physical goods ship, returned on the payment as `shipping_address`. Only the keys you supply are kept; omit it for digital goods.
Expand Down Expand Up @@ -2219,7 +2219,7 @@ async def create(
Where the buyer continues after completing an off-site step such as 3D Secure. An absolute https URL without credentials, at most 2,048 characters. Required when a saved payment method is charged with `off_session` false; otherwise ignored unless `confirmation_token` or a `paypal` `payment_method` is provided.

setup_future_usage : typing.Optional[CreatePaymentsRequestSetupFutureUsage]
Attests that the buyer was told the payment method will be saved for later charges, and saves it once they approve, so it can be charged with `member_id` and `payment_method_id`. PayPal shows the buyer the agreement to future charges on its approval page. Omit it for a one-time payment that saves nothing. Ignored unless a `paypal` `payment_method` is provided.
Attests that the buyer was told the payment method will be saved for later charges. A `paypal` method is saved once the buyer approves on PayPal's page, and can then be charged with `member_id` and `payment_method_id`. A `card_present` method saves the tapped card when the reader collects it. The payment's `payment_method_id` then names the saved card. The point of sale must also pass the buyer's consent to the Terminal SDK as `allow_redisplay`. Omit it for a one-time payment that saves nothing. Other payment methods ignore it.

shipping_address : typing.Optional[CreatePaymentsRequestShippingAddress]
Where physical goods ship, returned on the payment as `shipping_address`. Only the keys you supply are kept; omit it for digital goods.
Expand Down
Loading