         STPPaymentCardTextField.Representable(paymentMethodParams: $paymentMethodParams)
           .padding()
         if let setupIntent = model.intentParams {
-          Button("Buy") {
+          Button("Setup") {
             setupIntent.paymentMethodParams = paymentMethodParams
             isConfirmingSetupIntent = true
           }.setupIntentConfirmationSheet(isConfirmingSetupIntent: $isConfirmingSetupIntent,

            switch paymentStatus {
            case .succeeded:
              Image(systemName: "checkmark.circle.fill").foregroundColor(.green)
              Text("Payment complete!")
            case .failed:
              Image(systemName: "xmark.octagon.fill").foregroundColor(.red)
              Text("Payment failed! \(model.lastPaymentError ?? NSError())")
            case .canceled:
              Image(systemName: "xmark.octagon.fill").foregroundColor(.orange)
              Text("Payment canceled.")
            @unknown default:
              Text("Unknown status")
            }

}

class MySIBackendModel : ObservableObject {
  let backendCheckoutUrl = URL(string: "https://stripe-integration-tester.glitch.me/setup")! // An example backend endpoint
  @Published var paymentStatus: STPPaymentHandlerActionStatus?
  @Published var intentParams: STPSetupIntentConfirmParams?
  @Published var lastPaymentError: NSError?
