You've already forked AstralRinth
forked from didirus/AstralRinth
Tax fixes (#4435)
* Only update the PaymentMethod ID if not using placeholder ID * comment * Create Anrok transactions for all charges * Fix comment * Prefer using payment method's address rather than customer address * chore: query cache, clippy, fmt * Retrieve stripe address from PM * chore: query cache, clippy, fmt * fmt * bring back the query cache * Better address retrieval for updating tax amounts, always update tax_last_updated * chore: query cache, clippy, fmt * Don't set PM in ctoken interactive session for new PIs
This commit is contained in:
committed by
GitHub
parent
d418eaee12
commit
b4eba5a0d5
@@ -575,7 +575,12 @@ pub async fn create_or_update_payment_intent(
|
||||
intent.customer = Some(customer_id);
|
||||
intent.metadata = Some(metadata);
|
||||
intent.receipt_email = user.email.as_deref();
|
||||
intent.payment_method = Some(payment_method.id.clone());
|
||||
if let PaymentSession::Interactive {
|
||||
payment_request_type: PaymentRequestType::PaymentMethod { .. },
|
||||
} = &payment_session
|
||||
{
|
||||
intent.payment_method = Some(payment_method.id.clone());
|
||||
}
|
||||
|
||||
payment_session.set_payment_intent_session_options(&mut intent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user