According to Africastalking API documentation, we need to add the following parameters when sending requests to the SMS API:
a bulkSMSMode parameter. This is used to determine who gets billed for the SMS. The default value is 1 which means that the Africastalking account sending the message gets billed for the outgoing message. This works for all Africastalking messages like bulk messages but fails for premium rate SMS, which require the value to be set to 0.
a keyword parameter to be used for a premium service,
a retryDurationInHours which specifies the number of hours a subscription message should be retried in case it’s not delivered to the subscriber.
We could do this by first adding a configuration on RapidPro's Channel configuration page the same way that we have "is Shared" checkbox, add "is a Premium Shortcode" checkbox and then add the keyword and retry duration if the checkbox value is true.
According to Africastalking API documentation, we need to add the following parameters when sending requests to the SMS API:
a
bulkSMSMode
parameter. This is used to determine who gets billed for the SMS. The default value is1
which means that the Africastalking account sending the message gets billed for the outgoing message. This works for all Africastalking messages like bulk messages but fails for premium rate SMS, which require the value to be set to0
.a
keyword
parameter to be used for a premium service,a
retryDurationInHours
which specifies the number of hours a subscription message should be retried in case it’s not delivered to the subscriber.To solve this, we need to add the missing parameters here https://github.com/nyaruka/courier/blob/2ddce08051585f8c6760103ab567e456ea38cac5/handlers/africastalking/africastalking.go#L131
We could do this by first adding a configuration on RapidPro's Channel configuration page the same way that we have "is Shared" checkbox, add "is a Premium Shortcode" checkbox and then add the keyword and retry duration if the checkbox value is true.