# Custom Paywall Actions (Legacy)

You can set the click behavior of any element on a paywall to be a custom paywall action. This allows you to tie any tap in your paywall to hard-coded application logic.

For example, adding a custom action called `help_center` to a button in your paywall gives you the opportunity to present a help center whenever that button is pressed. To set this up, implement `handleCustomPaywallAction(withName:)` in your `SuperwallDelegate`:

### Swift
```swift
func handleCustomPaywallAction(withName name: String) {
  if name == "help_center" {
    HelpCenterManager.present()
  }
}
```

### Objective-C
```objc
- (void)handleCustomPaywallActionWithName:(NSString *)name {
  if ([name isEqualToString:"help_center"]) {
    [HelpCenterManager present];
  }
}
```

### Kotlin
```kotlin
override fun handleCustomPaywallAction(name: String) {
  if (name == "help_center") {
    HelpCenterManager.present()
  }
}
```

### Flutter
```dart
@override
void handleCustomPaywallAction(String name) {
  if (name == "help_center") {
    HelpCenterManager.present();
  }
}
```

### React Native
```javascript
handleCustomPaywallAction(name: string) {
  if (name == "help_center") {
    HelpCenterManager.present();
  }
}
```

Remember to set `Superwall.shared.delegate`! For implementation details, see the [Superwall Delegate](/content/docs/legacy/legacy_using-superwall-delegate/index.html) guide.
